GATE Computer ScienceHardGATE CS
How many distinct IEEE 754 single-precision numbers x satisfy 0.5 ≤ x ≤ 4 (counting both endpoints)?
- A. 33554433
- B. 25165825
- C. 25165824
- D. 25165826
Correct answer: B. 25165825
The ranges [0.5, 1), [1, 2) and [2, 4) each contain 2²³ = 8388608 values (23 fraction bits per binade), giving 3 × 2²³ = 25165824, and 4 itself adds one more: 25165825.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A fully associative cache (or page frame pool) of k lines has to serve the reference string 6, 5, 5, 7, 4, 6, 5, 2, 2, 6, 5, 7, 3, 2, 4…
- A fully associative cache has 3 lines (one word each). The reference string 2, 3, 2, 1, 5, 2, 4, 5, 3, 2, 5, 2, 6, 1, 3, 6, 2, 5, 1, 4 is…
- A DDR-style DRAM needs tRP = tRCD = CL = 15 ns, and a burst that fills one cache line takes 10/3 ns. A row-buffer hit costs CL + burst; a…
- A write-back, write-allocate cache is direct mapped with 4 lines of one word (line = address mod 4). Starting empty, it serves these…
- Twenty-eight 32-bit numbers are added with a tree of carry-save adders (3:2 compressors) that reduces every group of three operands to…
- A direct-mapped write-back cache of 8 KB has 64-byte blocks and each block is divided into 4 sub-blocks of 16 bytes with their own valid…