Addressing Modes: GATE CS Previous Year Questions

Addressing Modes · Computer Organization and Architecture

12 questions · asked in 11 of 27 years (2000–2026)

MCQ 11 · NAT 11-mark 10 · 2-mark 2

2000Questions per year2026

Questions 1–5 of 12

Q1GATE 2026 (Session 1)1 markMCQ−0.33 if wrong
Match each addressing mode in List I\textbf{List I} with a data element or an element of a data structure (in a high-level language) in List II\textbf{List II}:

List IList IIP. Immediate1. Element of an arrayQ. Indirect2. PointerR. Base with index3. Element of a recordS. Base with offset/displacement4. Constant\begin{array}{|l|l|} \hline {\textbf{List I}} & {\textbf{List II}} \\ \hline \hline P.\ \text{Immediate} & 1.\ \text{Element of an array} \\ \hline Q.\ \text{Indirect} & 2.\ \text{Pointer} \\ \hline R.\ \text{Base with index} & 3.\ \text{Element of a record} \\ \hline S.\ \text{Base with offset/displacement} & 4.\ \text{Constant} \\ \hline \end{array}

Q2GATE 2017 (Session 1)1 markMCQ−0.33 if wrong
Consider the C struct defined below:
struct data {
int marks [100] ;
char grade;
int cnumber;
};
struct data student;
The base address of student is available in register R1. The field student.grade can be accessed efficiently using

Q3GATE 2017 (Session 1)2 marksNAT
Consider a RISC machine where each instruction is exactly 4 bytes long. Conditional and unconditional branch instructions use PC- relative addressing mode with Offset specified in bytes to the target location of the branch instruction. Further the Offset is always with respect to the address of the next instruction in the program sequence. Consider the following instruction sequence.
Instr. No. Instruction i:addR2, R3, R4 i+1:subR5, R6, R7 i+2:cmpR1, R9, R10 i+3:beqR1,Offset
If the target of the branch instruction is i, then the decimal value of the Offset is __________

Q4GATE 2015 (Session 1)1 markMCQ−0.33 if wrong
For computers based on three-address instruction formats, each address field can be used to specify which of the following:
(S1) A memory operand
(S2) A processor register
(S3) An implied accumulator register

Q5GATE 20111 markMCQ−0.33 if wrong
Consider a hypothetical processor with an instruction of type LW R1, 20(R2), which during execution reads a 32-bit word from memory and stores it in a 32-bit register R1. The effective address of the memory location is obtained by the addition of constant 20 and the contents of register R2. Which of the following best reflects the addressing mode implemented by this instruction for the operand in memory?

Keep practising

Topics in Computer Organization and Architecture

All CS topics ›