All mock tests are FREE till 31 December — register to save your progress

On translating the expression given below into quadruple representation, how many operations are required? (i*j)+(e+f)*(a*b+c)

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: B. 6

Explanation

t1 = i*j, t2 = e+f, t3 = a*b, t4 = t3+c, t5 = t2*t4, t6 = t1+t5: six quadruples.

More Theory of Computation and Compilers questions