Open In App

ISRO | ISRO CS 2015 | Question 76

In X = (M + N x O)/(P x Q), how many one-address instructions are required to evaluate it?
(A) 4
(B) 6
(C) 8
(D) 10

Answer: (C)
Explanation: In One-address instructions, an accumulator register is required to perform all the instructions. Load and store operations are performed to fetch the values of operands from registers or memory to accumulators and to store the value of accumulator to a memory location. Instructions required to execute the code:

X = (M + N x O)/(P x Q)
1) Load A  :  ACC  

So, option (C) is correct.
Quiz of this Question

Article Tags :