Which one of the following dependencies among the register operands of different instructions can cause a data hazard in a pipelined processor?
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2026 Set 1 · Q16
Time
Select one answerSingle correct
Solution
Official answer: B) Read-after-write
Instruction PipeliningA data hazard occurs when instructions that exhibit data dependence modify or access registers in different pipeline stages, leading to incorrect execution if the order of operations is not preserved.
Read-After-Write (RAW): This represents a true data dependency where instruction tries to read a source register before instruction writes to it. If reads the register before completes its write stage, gets stale data, creating a RAW hazard.
Read-After-Read (RAR): Reading the same register multiple times never modifies data, so it cannot cause a hazard.
Write-After-Read (WAR) and Write-After-Write (WAW): These are name dependencies (anti-dependence and output dependence) that only cause hazards in out-of-order execution pipelines with variable execution latencies, but RAW is the fundamental true data dependency causing data hazards in pipelined execution.
Therefore, Read-after-write is the correct option.
Try the question first, then check your work.
Examiner trap
Consider which dependency is known as a "true data dependency" where a subsequent instruction needs the result generated by a preceding instruction.
This Instruction Pipelining previous year question is Q16 of the GATE CSE 2026 Set 1 paper. Find more GATE CSE PYQs on Instruction Pipelining in Computer Organization and Architecture, or browse all GATE CSE PYQs.
Free diagnostic
Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Instruction Pipelining PYQs now with no account.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
Instruction Pipelining has 25 GATE CSE PYQs across 20 papers from 2011 to 2026. 3 of them are 1-mark MCQs like this one, and GATE CSE 2026 Set 1 has 2.
How GATE tests Instruction PipeliningIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.