← Quiz: Instructions and Addressing Modes: all 10 questions
Quiz: Instructions and Addressing Modes · Question 7 of 10
A machine evaluates X = A + B using PUSH A, PUSH B, ADD, POP X. What kind of instruction format is ADD here?
A machine evaluates X = A + B using PUSH A, PUSH B, ADD, POP X. What kind of instruction format is ADD here?
- A.3-address
- B.2-address
- C.1-address
- D.0-address (stack)
Answer & explanation
Correct answer: 0-address (stack)
ADD takes both operands from the top of the stack, so it names no address.
Can you get the rest right without peeking?
Take the timed Quiz: Instructions and Addressing Modes quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →