GateAI
Number Representation and Arithmetic

GATE CSE 2024 Set 2 · Q14

MCQ1 markEasy

Time

The format of a single-precision floating-point number as per the IEEE 754 standard is: Choose the largest floating-point number among the following options.

GATE CSE 2024 Set 2 Q14 diagram

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: B)

Number Representation and Arithmetic

In the standard IEEE 754 single-precision (32-bit) floating-point format:

  • 11 sign bit (SS): 00 for positive, 11 for negative.

  • 88 exponent bits (EE): biased by 127127 (E=exponent+127E = \text{exponent} + 127).

  • 2323 mantissa/fraction bits (MM).

Let us evaluate each option:

  • Option A: S=0S = 0, E=011111112=127E = 01111111_2 = 127, M=111…12M = 111\dots 1_2. The value is (−1)0×(1+1−2−23)×2127−127=(2−2−23)×20≈2(-1)^0 \times (1 + 1 - 2^{-23}) \times 2^{127-127} = (2 - 2^{-23}) \times 2^0 \approx 2.

  • Option B: S=0S = 0, E=111111102=254E = 11111110_2 = 254, M=111…12M = 111\dots 1_2. The value is (−1)0×(1+1−2−23)×2254−127=(2−2−23)×2127≈3.4028×1038(-1)^0 \times (1 + 1 - 2^{-23}) \times 2^{254-127} = (2 - 2^{-23}) \times 2^{127} \approx 3.4028 \times 10^{38}. This is the maximum representable finite positive normalized floating-point number.

  • Option C: S=0S = 0, E=111111112=255E = 11111111_2 = 255, M=111…12≠0M = 111\dots 1_2 \neq 0. When the exponent field is all 1s1\text{s} (E=255E = 255) and the mantissa is non-zero, it represents NaN (Not a Number), not a valid real value.

  • Option D: S=0S = 0, E=011111112=127E = 01111111_2 = 127, M=000…02M = 000\dots 0_2. The value is (−1)0×(1.0)×2127−127=1.0(-1)^0 \times (1.0) \times 2^{127-127} = 1.0.

Hence, the largest floating-point number is given by B.

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This Number Representation and Arithmetic previous year question is Q14 of the GATE CSE 2024 Set 2 paper. Find more GATE CSE PYQs on Number Representation and Arithmetic in Digital Logic, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Number Representation and Arithmetic PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Number Representation and Arithmetic in GATE CSE

Number Representation and Arithmetic has 33 GATE CSE PYQs across 20 papers from 2012 to 2026. 13 of them are 1-mark MCQs like this one, and GATE CSE 2024 Set 2 has 2.

How GATE tests Number Representation and Arithmetic

More from GATE CSE 2024 Set 2

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2024 Set 2 · Q14 · MCQ

The format of a single-precision floating-point number as per the IEEE 754 standard is: Choose the largest floating-point number among the following options.

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.