arrow
arrow
arrow
The instructions ADD R1, A, B ADD R2, C, D MUL X, R1, R2 evaluates the X = (A + B) * (C + D) in which of the following?
Question



The instructions
ADD R1, A, B
ADD R2, C, D
MUL X, R1, R2
evaluates the X = (A + B) * (C + D) in which of the following?

A.

3 - Address instructions

B.

2 - Address instructions

C.

1 - Address instructions

D.

RISC instructions

Correct option is A


3-address instruction format allows operations to be performed on two source operands and store the result in a separate destination operand. Here, ADD R1, A, B and ADD R2, C, D use three operands (R1, A, B) and (R2, C, D), respectively. MUL X, R1, R2 multiplies the results stored in R1 and R2 and stores it in X, fitting the 3-address instruction format.

Free Tests

Free
Must Attempt

Basics of Education: Pedagogy, Andragogy, and Hutagogy

languageIcon English
  • pdpQsnIcon10 Questions
  • pdpsheetsIcon20 Marks
  • timerIcon12 Mins
languageIcon English
Free
Must Attempt

UGC NET Paper 1 Mock Test 1

languageIcon English
  • pdpQsnIcon50 Questions
  • pdpsheetsIcon100 Marks
  • timerIcon60 Mins
languageIcon English
Free
Must Attempt

Basics of Education: Pedagogy, Andragogy, and Hutagogy

languageIcon English
  • pdpQsnIcon10 Questions
  • pdpsheetsIcon20 Marks
  • timerIcon12 Mins
languageIcon English

Similar Questions

TEST PRIME

Access ‘UGC NET Computer Science’ Mock Tests with

  • 60000+ Mocks and Previous Year Papers
  • Unlimited Re-Attempts
  • Personalised Report Card
  • 500% Refund on Final Selection
  • Largest Community
1 month
students-icon
528k+ students have already unlocked exclusive benefits with Test Prime!

Similar Questions

Our Plans
Monthsup-arrow