🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.3-address
  2. B.2-address
  3. C.1-address
  4. 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 →