Skip to content

GATE CS Machine Instructions and Addressing Modes questions

Practise Machine Instructions and Addressing Modes questions for GATE CS. Explore official PYQs and original topic-wise quizzes, check answers and view available solutions. Free, no sign-in.

Subject, topic, year and type filter the full library. Match any choice within a filter, and all selected filter categories. Search, source and sort apply to this page.

20 on this page
Official PYQ2026Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
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}: …
Official PYQ2026Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
Consider a processor P\text{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\mathrm{Z}=\mathrm{X}+\mathrm{Y} ? Note: X, Y, and Z …
Official PYQ2026Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 2 marks
Consider a processor that has 1616 general purpose registers and it uses 22-byte instruction format for all its instructions. Variable-sized opcodes are permitted. There are three different types of instructions; M-type, R-type, and C-type. Each M-type instruction has 22 register operands and a 66-bit immediate operand. Each Rtype instruction has …
Official PYQ2025Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 2 marks
A processor has 6464 general-purpose registers and 5050 distinct instruction types. An instruction is encoded in 3232-bits. What is the maximum number of bits that can be used to store the immediate operand for the given instruction? ADD R1\text{ADD R1}, #25\#25 / / R 1=R 1+25\text{R 1=R 1+25}
Official PYQ2025Computer Organization and ArchitectureMachine Instructions and Addressing ModesNAT · 2 marks
An application executes 6.4×1086.4 \times 10^{8} number of instructions in 6.36.3 seconds. There are four types of instructions, the details of which are given in the table. The duration of a clock cycle in nanoseconds is __________. (rounded off to one decimal place) …
Official PYQ2025Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
​​​​Which of the following is/are part of an Instruction Set Architecture of a processor?
Official PYQ2024Computer Organization and ArchitectureMachine Instructions and Addressing ModesNAT · 2 marks
A processor with 1616 general purpose registers uses a 3232-bit instruction format. The instruction format consists of an opcode field, an addressing mode field, two register operand fields, and a 1616-bit scalar field. If 88 addressing modes are to be supported, the maximum number of unique opcodes possible for every addressing mode is ___________.
Official PYQ2024Computer Organization and ArchitectureMachine Instructions and Addressing ModesNAT · 2 marks
A processor uses a 3232-bit instruction format and supports byte-addressable memory access. The ISA\text{ISA} of the processor has 150150 distinct instructions. The instructions are equally divided into two types, namely R\text{R}-type and I\text{I}-type, whose formats are shown below. R - type Instruction Format: \begin{array}{|l|l|l|l|l|} \hline …
Official PYQ2023Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 2 marks
Consider the given C\text{C}-code and its corresponding assembly code, with a few operands U1-U4\text{U1-U4} being unknown. Some useful information as well as the semantics of each unique assembly instruction is annotated as inline comments in the code. The memory is byte-addressable. //C-code int a[10], b[10], i; // int is 32 bit for(i=0; i<10; i++) …
Official PYQ2021Computer Organization and ArchitectureMachine Instructions and Addressing ModesNAT · 2 marks
Consider the following instruction sequence where registers R1,R2\text{R1}, \text{R2} and R3\text{R3} are general purpose and MEMORY[X]\text{MEMORY[X]} denotes the content at the memory location X.\text{X}. …
Official PYQ2020Computer Organization and ArchitectureMachine Instructions and Addressing ModesNAT · 2 marks
A processor has 6464 registers and uses 1616-bit instruction format. It has two types of instructions: I-type and R-type. Each I-type instruction contains an opcode, a register name, and a 44-bit immediate value. Each R-type instruction contains an opcode and two register names. If there are 88 distinct I-type opcodes, then the maximum number of …
Official PYQ2018Computer Organization and ArchitectureMachine Instructions and Addressing ModesNAT · 2 marks
A processor has 1616 integer registers (R0, R1,…, R15)\text{(R0, R1}, \ldots ,\text{ R15)} and 6464 floating point registers (F0, F1,…,F63).\text{(F0, F1}, \ldots , \text{F63)}. It uses a 2- byte2\text{- byte} instruction format. There are four categories of instructions: Type-1, Type-2, Type-3,\text{Type-1, Type-2, Type-3}, and Type-4. Type-1\text{Type-4. Type-1} category consists of four instructions, …
Official PYQ2018Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
Consider the following processor design characteristics: Register-to-register arithmetic operations only Fixed-length instruction format Hardwired control unit Which of the characteristics above are used in the design of a RISC processor?
Official PYQ2017Computer Organization and ArchitectureMachine Instructions and Addressing ModesNAT · 1 mark
Consider a RISC machine where each instruction is exactly 44 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 …
Official PYQ2017Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
Consider the CC struct defined below: struct data { int marks [100]; char grade; int cnumber; }; struct data student; The base address of student is available in register R1R1. The field student.grade can be accessed efficiently using:
Official PYQ2016Computer Organization and ArchitectureMachine Instructions and Addressing ModesNAT · 1 mark
Consider a processor with 6464 registers and an instruction set of size twelve. Each instruction has five distinct fields, namely, opcode, two source register identifiers, one destination register identifier, and twelve-bit immediate value. Each instruction must be stored in memory in a byte-aligned fashion. If a program has 100100 instructions, the …
Official PYQ2016Computer Organization and ArchitectureMachine Instructions and Addressing ModesNAT · 1 mark
A processor has 4040 distinct instruction and 2424 general purpose registers. A 3232-bit instruction word has an opcode, two registers operands and an immediate operand. The number of bits available for the immediate operand field is_______.
Official PYQ2015Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
Consider a processor with byte-addressable memory. Assume that all registers, including program counter (PC) and Program Status Word (PSW), are size of two bytes. A stack in the main memory is implemented from memory location (0100)16(0100)_{16} and it grows upward. The stack pointer (SP) points to the top element of the stack. The current value of SP is …
Official PYQ2014Computer Organization and ArchitectureMachine Instructions and Addressing ModesNAT · 1 mark
A machine has a 32-bit32\text{-bit} architecture, with 1-word1\text{-word} long instructions. It has 6464 registers, each of which is 3232 bits long. It needs to support 4545 instructions, which have an immediate operand in addition to two register operands. Assuming that the immediate operand is an unsigned integer, the maximum value of the immediate …
Official PYQ2011Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
Consider a hypothetical processor with an instruction of type LW R1, 20(R2)\text{LW R1, 20(R2)}, which during execution reads a 32-bit32\text{-bit} word from memory and stores it in a 32-bit32\text{-bit} register R1\text{R1}. The effective address of the memory location is obtained by the addition of a constant 2020 and the contents of register R2\text{R2}. Which …