Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
247 views
in Computer by (106k points)
closed by
In X = (M + N × O) / (P × Q), how many one-address instructions are required to evaluate it?
1. 4
2. 6
3. 8
4. 10

1 Answer

0 votes
by (103k points)
selected by
 
Best answer
Correct Answer - Option 3 : 8

The correct answer is "option 3".

CONCEPT:

To obtain operand value from memory, the address field of an instruction is used by the CPU.

In single address instruction, one of the operands is stored in the accumulator & the other operand may be either in register or memory. 

EXPLANATION:

All the operations will be performed in the Accumulator register(AC).

The load operation is used to fetch the value from register or memory to accumulator.

The store operation is used to store the value from the accumulator to register or memory.

The one address instructions for the given equations are:​

Load/Store/Operation

One-address Instruction

LOAD N AC ← M[N]
MUL O AC ← AC × M[O]
ADD M AC ← AC + M[M]
STORE T M[T] ←  AC

LOAD P

AC ← M[P]

MUL Q

AC ← AC × M[Q]

DIV T

AC ← AC/ M[T]

STORE X

M[X] ← AC

Hence, the correct answer is "option 3".

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...