GATE Computer ScienceVery hardGATE CS (PYQ pattern)
An 8-bit floating-point format has 1 sign bit, 4 exponent bits with bias 7 and 3 fraction bits, with IEEE-style rules (exponent field 0000 for zero and denormals with exponent 1 − bias, 1111 for infinities and NaN). How many distinct values lie strictly between 0 and 1, and what is the largest of them?
- A. 48; 0.9375
- B. 56; 0.875
- C. 55; 0.875
- D. 55; 0.9375
Correct answer: D. 55; 0.9375
Normals below 1 have exponent fields 1…6 (2⁻⁶ … 2⁻¹), each with 8 fractions: 48 values. Denormals add fractions 001…111 at 2⁻⁶ × f/8: 7 more. Total 55. The largest is 1.111₂ × 2⁻¹ = 0.9375. Forgetting denormals gives 48.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- Five instructions occur with relative frequencies 0.4, 0.2, 0.2, 0.1 and 0.1. A fixed-length opcode would need 3 bits. What is the minimum…
- An in-order 2-issue processor starts up to two consecutive instructions per cycle. The second is issued with the first only if it has no…
- A loop body is LW, ADD (uses the loaded value), SW, ADDI, BNE and runs 1000 times on a 5-stage pipeline with forwarding: the ADD right…
- A cache has 64 sets of 4 ways. Exact LRU stores the full recency order of each set using the minimum number of bits; tree pseudo-LRU…
- A fully pipelined floating-point adder has latency 4 cycles and can start one addition every cycle; a dependent addition starts only when…
- Two branches share one 2-bit saturating counter (aliasing in a small predictor table): X is always taken, Y is never taken, and they…