GATE CS 2024 Set 2 | Question 43
Compiler Design › Intermediate Code & Code Optimization · MCQ · 2 marks · Answer: A
- Question 43Compiler Designmcq2 marksFor , fill the missing triples (1),(3),(6). Which option is correct?
- A.(1) =[] s i (3) * (0)(2) (6) []= x i✓
- B.(1) []= s i (3) - (0)(2) (6) =[] x (5)
- C.(1) =[] s i (3) * (0)(2) (6) []= x (5)
- D.(1) []= s i (3) - (0)(2) (6) =[] x i
Answer: A
Solution
Answer: (A) The three-address form of uses the triples: (0) + p r ; (1) =[] s i (fetch s[i]) ; (2) uminus (1) ; (3) * (0)(2) ; (4) / u w ; (5) + (3)(4) ; (6) []= x i (address of x[i]) ; (7) = (6)(5). So the missing entries are (1) =[] s i, (3) * (0)(2), and (6) []= x i - option (A). - A.
More GATE PYQ on Intermediate Code & Code Optimization
All GATE CS Compiler Design PYQ →Attempt GATE CS 2024 Set 2 in real GATE exam mode
Full paper with a timer, the GATE interface and a topic-wise analysis — free.
Create free account →