GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2026 set1

GATE 2026 set1 · CS · MCQ · 1 mark · Computer Organization and Architecture › Machine Instructions & Addressing Modes

GATE 2026 set1 Computer Science and Information Technology question: Consider a processor P whose instruction set architecture is the load-store…

Consider a processor P whose instruction set architecture is the load-store architecture. The instruction format is such that the first operand of any instruction is the destination operand.

Which one of the following sequences of instructions corresponds to the high-level language statement Z = X + Y ?

Note: X, Y, and Z are memory operands. R0, R1, and R2 are registers.

  1. (A)
    ADD Z, X, Y
    
  2. (B)
    LOAD R0, X
    ADD Z, R0, Y
    
  3. (C)
    ADD R0, X, Y
    STORE Z, R0
    
  4. (D)
    LOAD R0, X
    LOAD R1, Y
    ADD R2, R0, R1
    STORE Z, R2
    
Show answer

Official answer: D

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion