GATE EC 2021 — Question 42

Computer OrganizationMachine instructions and addressing modesMCQ2 marks · −2/3 if wrongEasy

The content of the registers are \(R_1 = 25\text{H}\), \(R_2 = 30\text{H}\) and \(R_3 = 40\text{H}\). The following machine instructions are executed. PUSH{R1} PUSH{R2} PUSH{R3} POP{R1} POP{R2} POP{R3} After execution, the content of registers \(R_1, R_2, R_3\) are
  1. A
    \(R_1 = 40\text{H},\ R_2 = 30\text{H},\ R_3 = 25\text{H}\)
  2. B
    \(R_1 = 25\text{H},\ R_2 = 30\text{H},\ R_3 = 40\text{H}\)
  3. C
    \(R_1 = 30\text{H},\ R_2 = 40\text{H},\ R_3 = 25\text{H}\)
  4. D
    \(R_1 = 40\text{H},\ R_2 = 25\text{H},\ R_3 = 30\text{H}\)
Practise the full 2021 paper
Challenge a friend: WhatsApp Telegram
Recommended book · affiliate linkComputer Organization and Design (Patterson & Hennessy)Pipelining, caches, memory hierarchy and instruction sets.
Practise more on Machine instructions and addressing modesTimed, in the real exam interface · free to start

A GATE question every morning

One real past-paper question every morning for your branch, answer hidden until you tap. Free on Telegram.

Join
Stuck? Ask in the student group