The GATE Grind

GATE 2020 CS – Question 39

Computer Organization and Architecture · Number Representation and Floating Point Arithmetic · 2 marks · Multiple choice

Consider three registers R1, R2, and R3 that store numbers in IEEE-754 single precision floating point format. Assume that R1 and R2 contain the values (in hexadecimal notation) 0x42200000 and 0xC1200000, respectively.

If $R3=\frac{R1}{R2}$, what is the value stored in R3?

  1. 0x40800000
  2. 0xC0800000
  3. 0x83400000
  4. 0xC8500000

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: (B) 0xC0800000

Explanation

0x42200000 = 40.0 and 0xC1200000 = -10.0, so R1/R2 = -4.0. In IEEE-754 single precision, -4.0 = 0xC0800000.