Question Details

Consider the following single precision floating point numbers and the operation.

X : (35C00000)H

Y : (34A00000)H

Z = X + Y


What is the value of ’Z’ in hexadecimal?

Options

A

(B5E80000)H

B

(F5E80000)H

C

(35C80000)H

D

(35E80000)H

Show Answer
Correct Answer
D (35E80000)H

Solution :

The correct option is (35E80000)H.

To find the value of Z = X + Y, we need to decode the single precision IEEE-754 floating point representations of X and Y, align their exponents, add them, and then encode the result back into IEEE-754 single precision format.

Recall the IEEE-754 single precision format:
- Sign bit (s): 1 bit
- Biased Exponent (e): 8 bits
- Mantissa/Fraction (f): 23 bits
The represented value is given by:
−1s×(1.f)2×2e−127

Step 1: Decoding X = (35C00000)H
Converting the hexadecimal representation to binary:
3 = 0011, 5 = 0101, C = 1100, and the remaining five digits are 00000.
X in binary: 0011 0101 1100 0000 0000 0000 0000 0000
Grouping the bits:
- Sign bit (s) = 0 (positive)
- Exponent (e) = 0110 1011 (binary) = 107 (decimal)
- Mantissa (f) = 1000 0000 0000 0000 0000 000 (binary)
The actual exponent value for X is:
EX=107−127=−20
Therefore, X is:
X=(1.1)2×2−20

Step 2: Decoding Y = (34A00000)H
Converting the hexadecimal representation to binary:
3 = 0011, 4 = 0100, A = 1010, and the remaining five digits are 00000.
Y in binary: 0011 0100 1010 0000 0000 0000 0000 0000
Grouping the bits:
- Sign bit (s) = 0 (positive)
- Exponent (e) = 0110 1001 (binary) = 105 (decimal)
- Mantissa (f) = 0100 0000 0000 0000 0000 000 (binary)
The actual exponent value for Y is:
EY=105−127=−22
Therefore, Y is:
Y=(1.01)2×2−22

Step 3: Performing the addition Z = X + Y
To add X and Y, we must align their exponents to the larger exponent, which is -20.
Expressing Y with exponent -20:
Y=(1.01)2×2−22=(0.0101)2×2−20
Now we add the significands:
Z=X+Y=[(1.1)2+(0.0101)2]×2−20
Z=(1.1101)2×2−20

Step 4: Encoding Z back into IEEE-754 format
The result Z is already in normalized form. Let's find its components:
- Sign bit (s) = 0 (since Z is positive)
- Exponent (E) = -20. The biased exponent is:
e=−20+127=107=(01101011)2
- Fraction (f) is the fractional part of the mantissa:
f = 1101 0000 0000 0000 0000 000 (23 bits)
Combine all fields:
Z = [0] [0110 1011] [1101 0000 0000 0000 0000 000]
Grouping the bits in 4-bit sets to convert back to hexadecimal:
- 0011 = 3
- 0101 = 5
- 1110 = E
- 1000 = 8
- 0000 = 0
- 0000 = 0
- 0000 = 0
- 0000 = 0
Thus, Z in hexadecimal is (35E80000)H.

Transparent Access on Mindyard

Built for Learners & Educators Alike

Completely free for students. Educators & coaching institutes get 2 months free Pro trial to create tests.

FREE FOR STUDENTS

Practice & Learn Free for Students

Access unlimited practice questions, detailed step-by-step solutions, and exam study materials — completely free for students.

  • Unlimited mock tests & question bank practice
  • Full access to curated study library & formula notes
  • 100% free for students • No credit card required
2 MONTHS FREE TRIAL

Educators & Coaching Institutes

Create and conduct professional online assessments with AI question generation, tab proctoring, and comprehensive batch management.

  • AI question uploader & rapid test generator
  • Anti-cheating tab proctoring & performance reports
  • Full Pro access free for 60 days • No upfront commitment
Discover more resources

You may also like

Mock Tests

View All
  • GATE
  • beginner
  • 3 hours
  • civil engineering

Prepare for GATE 2026 Civil Engineering with the latest question papers, previous year papers, detailed solutions, syllabus, exam pattern, preparation tips, mock tests, and subject-wise study material. Download GATE 2026 CE question papers with solutions in PDF format and boost your preparation for top engineering institutes and PSU recruitment.

  • GATE
  • beginner
  • 3 hours
  • electronics and communication engineering

Prepare effectively for GATE 2026 Electronics & Communication Engineering (EC) with this comprehensive Question Paper with Solutions. This resource includes detailed explanations, concept-wise solutions, previous year paper analysis, and exam-oriented practice to help aspirants strengthen core subjects like Electronic Devices, Analog Circuits, Digital Circuits, Signals & Systems, Network Theory, Control Systems, Electromagnetics, Communications, and more. Perfect for revision, self-assessment, and boosting your GATE 2026 EC preparation strategy.

Ask AI Tutor
5 left
Q1 View Question & Options
AI Tutor is solving this question...
Reading question context & options...
Ask your own doubt or choose a quick prompt: