Question
Official answer and solution
- Official answer
- A, B and C
- From
- Official GATE 2025 answer key
Solution
Inspect the inputs to Mux_A and Mux_B feeding the two operand ports of the ALU.
In the given datapath:
Mux_Aselects the first ALU input from either registerRAor a 32-bitimmediate value.Mux_Bindependently selects the second ALU input from either registerRBor a 32-bitimmediate value.
Depending on the two select lines (Select RA/immediate and Select RB/immediate), the ALU can perform arithmetic operations on:
- Two registers (
RAandRB) (A) is CORRECT. - One register and one immediate value (
RA+ immediate, or immediate +RB) (B) is CORRECT. - Two immediate values (immediate + immediate) (C) is CORRECT.
Statement (D) is false because of the word 'only'.
Final answer
Options (A), (B), (C)
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2025 Computer Science and Information Technology - Session 1 (CS1)
- Question
- 27 of 65
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.