GATE Computer ScienceVery hardGATE CSE
In IEEE 754 single precision with round-to-nearest-even, let x = 2^24 = 16777216. What are the values of (x + 1) + 1 and x + (1 + 1)?
- A. 16777218 and 16777216
- B. 16777216 and 16777216
- C. 16777218 and 16777218
- D. 16777216 and 16777218
Correct answer: D. 16777216 and 16777218
Above 2^24, the spacing is 2, so x+1 is a tie that rounds to even (back to x); doing it twice leaves 16777216, whereas 1+1 = 2 is exact and x+2 = 16777218.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A 4 KB direct-mapped cache has 32-byte lines. The loop "for i = 0..127: sum += A[i] + B[i]" reads 4-byte integers, A starting at address 0…
- A RISC ISA has fixed 4-byte instructions. A conditional branch holds a 16-bit signed offset counted in instructions and the target is…
- How many distinct single-precision IEEE 754 values x satisfy 1 ≤ x < 1024?
- A disk spins at 7200 rpm, has an 8 ms average seek and a 100 MB/s media rate (1 KB = 1000 B, 1 MB = 10⁶ B). Request X reads one contiguous…
- A memory has 8 low-order interleaved banks (bank = word address mod 8). An access started in cycle t keeps its bank busy in cycles t … t+5…
- A classic 5-stage pipeline (IF, ID, EX, MEM, WB) has no forwarding; the register file is written in the first half of a cycle and read in…