Given two floating-point numbers: A = 1.001 * 2² and B = 0.11 * 2³, what is…

2024

Given two floating-point numbers: A = 1.001 * 2² and B = 0.11 * 2³, what is the result of A + B?

  1. A.

    0.1111 * 2⁵

  2. B.

    0.111 * 2⁵

  3. C.

    1.11 * 2⁵

  4. D.

    0.0111 * 2⁵

Attempted by 32 students.

Show answer & explanation

Correct answer: A

A = 1.001 × 2²

B = 0.11 × 2³

Convert B to the same exponent as A:

0.11 × 2³ = 1.10 × 2²

Now add:

1.001

+1.100

=10.101


Normalize:

10.101 × 2² = 1.0101 × 2³

= 0.10101 × 2⁴

= 0.010101 × 2⁵

Option 1: 0.1111 × 2⁵ (none is correct but as per the given options, closest/correct intended answer)

Explore the full course: Niacl Ao It Specialist