GATE Computer ScienceVery hardGATE CS (PYQ pattern)
In IEEE 754 single precision with round-to-nearest-even, let x = 3 × 2⁻¹⁴⁹ (three times the smallest positive denormal). What are x / 2 and x / 4?
- A. 2⁻¹⁴⁹ and 0
- B. 2⁻¹⁴⁹ and 2⁻¹⁴⁹
- C. 2⁻¹⁴⁸ and 0
- D. 2⁻¹⁴⁸ and 2⁻¹⁴⁹
Correct answer: D. 2⁻¹⁴⁸ and 2⁻¹⁴⁹
Denormals are multiples of d = 2⁻¹⁴⁹. x/2 = 1.5d is a tie between d (odd significand) and 2d (even), so it rounds to 2d = 2⁻¹⁴⁸. x/4 = 0.75d is nearer to d than to 0, so it gives 2⁻¹⁴⁹. Truncation would give d and 0.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A memory protects data with a SECDED Hamming code (single-error correction plus one overall parity bit for double-error detection). How…
- A virtually indexed, physically tagged cache is 32 KB, 4-way set-associative with 32-byte blocks, and pages are 4 KB. To avoid synonyms…
- A loop reads a[i] and then b[i] for i = 0..1023, where a and b are int arrays (4 bytes) starting at byte addresses 0 and 4096. The data…
- On a 5-stage pipeline with forwarding, 30% of instructions are loads. Half of them are followed immediately by a dependent instruction…
- After a section of a program was made 10 times faster, measurements on the improved program show that the improved section accounts for…
- A fully associative cache of 3 lines (block = one word) sees the block reference string [2, 4, 4, 0, 4, 5, 5, 2, 0, 2, 2, 2, 3, 5, 2, 1]…