GATE Computer ScienceModerateGATE CS (PYQ pattern)
IEEE 754 half precision has 1 sign bit, 5 exponent bits (bias 15) and 10 fraction bits. What is the smallest positive integer that it cannot represent exactly, and what is its largest finite value?
- A. 2049 and 65504
- B. 1025 and 65504
- C. 2049 and 65535
- D. 2048 and 65504
Correct answer: A. 2049 and 65504
With a hidden bit the significand has 11 bits, so all integers up to 2¹¹ = 2048 are exact and 2049 is the first that is not. The largest finite value uses exponent field 30 (2¹⁵) and significand 2 − 2⁻¹⁰: 65,504. 1025 forgets the hidden bit; 65,535 assumes integer coding.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A 4-stage pipeline has stage delays 140, 300, 170 and 260 ps and no latch overhead. The slowest stage is duplicated into two identical…
- A 32-bit machine uses a two-level page table: 10-bit top index, 10-bit second-level index, 12-bit offset, 4-byte entries, every table…
- A machine has 48-bit virtual addresses, 4 KB pages and 16 GB of RAM (1 GB = 2³⁰ B). Its inverted page table has one entry per frame…
- Booth's algorithm multiplies M = 0110 (+6) by Q = 1011 (−5) with a 4-bit accumulator A (initially 0000) and a bit Q₋₁ (initially 0). Each…
- Machine X runs a program of 5×10⁹ instructions at 2400 MIPS. Machine Y, with a different ISA and compiler, needs only 3×10⁹ instructions…
- Which of the following statements about virtual memory hardware are correct? I. A TLB caches recently used page-table entries. II. A page…