Solveeit Logo

Question

ICT Question on Computer Literacy

Consider the expression (a-1)* (((b+c)/ 3) + d). Let x be the minimum number of registers required by an optimal code generation (without any register spill) algorithm for a load/store architecture, in which
(i) Only load and store instructions can have memory operands and
(ii) Arithmetic instructions can have only register or immediate operands. The value of x is______.

A

2

B

4

C

1

D

3

Answer

2

Explanation

Solution

The correct answer is(B): 2