JKSSB Written 2026
Answer & Explanation
Click "Check Answer" to reveal
Correct Answer:
Option C —
Data hazards can occur in pipelined CPUs even with only register addressing.
This question explores the intersection of computer architecture and instruction set execution.C) Data Hazards (Correct): A data hazard occurs when an instruction depends on the result of a previous instruction that is still moving through the pipeline. Even if you only use register addressing (which is the fastest way to access data), a hazard can occur. For example, if Instruction 1 writes to Register A and Instruction 2 immediately tries to read from Register A, Instruction 2 might read the "old" value before the first instruction has finished writing the new one.
A) Immediate Addressing (Incorrect): While immediate addressing (where the operand is part of the instruction itself) avoids a separate data memory fetch, it doesn't "always" speed up execution. The instruction itself might be longer, requiring more cycles to fetch from the instruction memory.
B) Larger Cache (Incorrect): A larger cache can actually decrease performance if it results in higher latency (access time) or if the hit ratio is low. If the CPU spends too much time searching a massive cache only to find the data isn't there, it would have been faster to have a smaller, quicker cache.
D) Virtual Memory (Incorrect): Virtual memory and cache serve different purposes. Virtual memory handles the mapping of a large logical address space onto smaller physical RAM, while cache memory is a high-speed buffer between the CPU and RAM to speed up data retrieval. You need both for a modern, efficient system.
Answer verified by Quintessence Classes faculty — Karan Nagar, Srinagar.