Back to the 2022 paper

Module 3: Instruction Set and Programming

20222m

PUSH and POP instructions are used to ____ and ____ respectively.
(i) Send the data from the stack, copy the data to the stack
(ii) Send the data to the stack, copy the data from the stack
(iii) All of the above
(iv) None of the above

Worked SolutionAI Assisted

Answer: (ii) Send the data to the stack, copy the data from the stack

Explanation: PUSH sends/copies source byte to stack (write, SP++), POP copies data from stack to destination (read, SP--). Option (ii) states PUSH = to stack, POP = from stack, which is correct. Option (i) reverses them.

Similar questions

Official AppAndroid App

PYQDeck for Android

Solve BEU previous-year exam papers anywhere, anytime. Fast search, offline paper viewing, and step-by-step solutions designed specifically for your phone.