State whether the following statements are true or false. (i) With one-address…
2018
State whether the following statements are true or false.
(i) With one-address instructions, the programmer generally has available only one general-purpose register, the accumulator.
(ii) Zero-address instructions are applicable to a special memory organization called a stack.
- A.
(i) True, (ii) True
- B.
(i) True, (ii) False
- C.
(i) False, (ii) True
- D.
(i) False, (ii) False
Attempted by 196 students.
Show answer & explanation
Correct answer: A
Statement (i) is true because one-address instructions implicitly use the accumulator as an operand, limiting available general-purpose registers. Statement (ii) is true because zero-address instructions operate on a stack where operands are implicitly accessed via push and pop operations without explicit memory addresses.