GATE Computer ScienceEasyGATE CS (PYQ pattern)
A cache with 8-word blocks is cold. A program reads an array of 1000 consecutive words once, starting at a block boundary. How many compulsory misses occur, and what is the hit ratio?
- A. 125 misses; 87.5%
- B. 124 misses; 87.6%
- C. 1000 misses; 0%
- D. 125 misses; 12.5%
Correct answer: A. 125 misses; 87.5%
1000 / 8 = 125 blocks, each missed once on its first word; 875 of 1000 reads hit, 87.5%.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A processor has 64 general registers and a fixed 32-bit instruction word. Its three-register format has three 6-bit register fields and…
- A cache has a 2-cycle hit time. 70% of memory accesses are reads, which miss 5% of the time with a 40-cycle miss penalty. The other 30%…
- 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…
- 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…