Machine Instruction: GATE CS Previous Year Questions

Machine Instruction · Computer Organization and Architecture

36 questions · asked in 19 of 27 years (2000–2026)

MCQ 27 · MSQ 1 · NAT 81-mark 22 · 2-mark 14

2000Questions per year2026

Questions 1–5 of 36

Q1GATE 2026 (Session 1)1 markMCQ−0.33 if wrong
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{Z}={X}+{Y} ?
Note: X, Y, and Z are memory operands. R00, R11, and R22 are registers.

Q2GATE 2026 (Session 2)2 marksMCQ−0.67 if wrong
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 33 register operands. Each C-type instruction has a register operand and a 66 -bit offset value. If there are 22 unique M-type opcodes and 77 unique R-type opcodes, which one of the following options gives the maximum number of unique opcodes possible for C-type instructions?

Q3GATE 2025 (Session 1)2 marksMCQ−0.67 if wrong
A processor has 64 general-purpose registers and 50 distinct instruction types. An instruction is encoded in 32-bits. What is the maximum number of bits that can be used to store the immediate operand for the given instruction?

ADD R1, #25 // R1 = R1 + 25

Q4GATE 2025 (Session 2)1 markMSQ
Which of the following is/are part of an Instruction Set Architecture of a processor?

One or more options are correct.

Q5GATE 2024 (Session 2)2 marksNAT
A processor with 16 general purpose registers uses a 32-bit instruction format. The instruction format consists of an opcode field, an addressing mode field, two register operand fields, and a 16-bit scalar field. If 8 addressing modes are to be supported, the maximum number of unique opcodes possible for every addressing mode is _________

Keep practising

Topics in Computer Organization and Architecture

All CS topics ›