Which type of machine executes zero-address instructions such as ADD that take both operands from the top of a stack?

Correct answer C. Stack machine

Explanation

A stack machine's arithmetic instructions name no operands: ADD pops the top two entries and pushes the sum, and only PUSH and POP carry memory addresses. An accumulator machine uses one-address instructions with an implicit accumulator. Load/store machines name registers explicitly, typically with three operands. Expressions map naturally onto a stack through postfix (reverse Polish) order.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.