GateAI
Number Representation and Arithmetic

GATE CSE 2014 Set 2 · Q45

MCQ2 marksMedium

Time

The value of a float type variable is represented using the single-precision 32-bit floating point format of IEEE-754 standard that uses 1 bit for sign, 8 bits for biased exponent and 23 bits for mantissa. A float type variable XX is assigned the decimal value of −14.25-14.25. The representation of XX in hexadecimal notation is

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: A) C1640000H

Number Representation and Arithmetic

To convert the decimal number −14.25-14.25 into IEEE-754 32-bit single-precision floating-point format:

  1. Sign bit (SS): Since the number is negative, S=1S = 1.

  2. Binary Conversion:

    • Integer part: 1410=1110214_{10} = 1110_2

    • Fractional part: 0.2510=0.0120.25_{10} = 0.01_2

    • Thus, 14.2510=1110.01214.25_{10} = 1110.01_2

  3. Normalized Scientific Notation:

    1110.012=1.110012×231110.01_2 = 1.11001_2 \times 2^3
    • Exponent E=3E = 3

    • Mantissa (fractional part) M=110012M = 11001_2

  4. Biased Exponent:

    Biased Exponent=E+127=3+127=13010=100000102\text{Biased Exponent} = E + 127 = 3 + 127 = 130_{10} = 10000010_2
  5. Mantissa Field (23 bits):

    M=110010000000000000000002M = 11001000000000000000000_2
  6. Combine all fields:

    • Sign (1 bit): 1

    • Biased Exponent (8 bits): 10000010

    • Mantissa (23 bits): 11001000000000000000000

    Grouping into 4-bit nibbles:

    1100⏟C0001⏟10110⏟60100⏟40000⏟00000⏟00000⏟00000⏟0\underbrace{1100}_{\text{C}} \quad \underbrace{0001}_{1} \quad \underbrace{0110}_{6} \quad \underbrace{0100}_{4} \quad \underbrace{0000}_{0} \quad \underbrace{0000}_{0} \quad \underbrace{0000}_{0} \quad \underbrace{0000}_{0}
  7. Hexadecimal Representation:

    C1640000H\text{C1640000H}

Therefore, option (A) is the correct answer.

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 Q45 of the GATE CSE 2014 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. 4 of them are 2-mark MCQs like this one, and GATE CSE 2014 Set 2 has 2.

How GATE tests Number Representation and Arithmetic

More from GATE CSE 2014 Set 2

Share this solution

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

GateAI solution cardGATE CSE 2014 Set 2 · Q45 · MCQ

The value of a float type variable is represented using the single-precision 32-bit floating point format of IEEE-754 standard that uses 1 bit for sign, 8 bits for biased exponent and 23 bits for mantissa. A float type variable X is assigned the decimal value of -14.25. The representation of X in hexadecimal notation is

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.