GATE CS 2026 Set 1 | Question 15
Computer Organization & Architecture › Machine Instructions · MCQ · 1 mark · Answer: D
- Question 15Computer Organization & Architecturemcq1 markConsider 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.
- A.ADD Z, X, Y
- B.LOAD R0, X ADD Z, R0, Y
- C.ADD R0, X, Y STORE Z, R0
- D.LOAD R0, X LOAD R1, Y ADD R2, R0, R1 STORE Z, R2✓
Answer: D
Solution
Answer: (D) In a load-store (RISC-style) ISA, only LOAD and STORE touch memory, and every ALU instruction works on registers only. (A), (B) and (C) each have an ADD with a memory operand, so they are illegal. (D) loads both operands, adds them in registers, then stores the result. - A.
More GATE PYQ on Machine Instructions
All GATE CS Computer Organization & Architecture PYQ →Attempt GATE CS 2026 Set 1 in real GATE exam mode
Full paper with a timer, the GATE interface and a topic-wise analysis — free.
Create free account →