Last Updated :
26 Dec, 2018
Consider the following program to evaluate x = (a + b) / (c*d – e):
MOV t1, a
ADD t1, b
MOV t2, d
SUB t2, e
MUL t2, c
DIV t1, t2
MOV x, t1
Which of the following option is correct?
(A) The program is Using a general register computer with three address instructions
(B) The program is Using a general register computer with two address instructions
(C) The program is using a accumulater type computer with one address instructions
(D) The program is using a stack type computer with zero address instructions
Answer: (B)
Explanation:
MOV t1, a
ADD t1, b
MOV t2, d
SUB t2, e
MUL t2, c
DIV t1, t2
MOV x, t1
The program is Using a general register computer with two address instructions.
So, option (B) is correct.
Quiz of this Question
Share your thoughts in the comments
Please Login to comment...