BPSC TRE – Compiler Design: Syntax-Directed Translation & Intermediate Code | Test 1

Questions 11-15 of 50

0% completed (0/50 answered)
Your score 0/50 0 answered
Correct 0 Incorrect 0 Unanswered 50 Accuracy 0%

Question 11

MCQ · Single Correct 1 mark

Which data structure implementation of Three-Address Code contains four fields: op, arg1, arg2, and result?

Answers for question 11

Question 12

MCQ · Single Correct 1 mark

What is the key difference between a Quadruple and a Triple representation in TAC?

Answers for question 12

Question 13

MCQ · Single Correct 1 mark

What is a major drawback of using Triples for intermediate code optimization (like code motion/reordering)?

Answers for question 13

Question 14

MCQ · Single Correct 1 mark

How do Indirect Triples solve the reordering problem of standard Triples during code optimization?

Answers for question 14

Question 15

MCQ · Single Correct 1 mark

In a Directed Acyclic Graph (DAG) for an expression, what do the interior nodes and leaf nodes represent?

Answers for question 15
Scroll to Top