GATE Compiler Design Full Mock Test SET-1

Questions 46-50 of 100

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

Question 46

MCQ · Single Correct 1 mark

What is the main structural advantage of Quadruples over Triples in intermediate code representation?

Answers for question 46

Question 47

MCQ · Single Correct 1 mark

For the DAG of the expression (a + b) * (a + b), how many unique nodes and operand edges are there if the repeated use of the shared + node is counted as two operand edges?

Answers for question 47

Question 48

MCQ · Single Correct 1 mark

In array address calculations for 2D array A[10][20] stored in Row-Major order starting at base address B with element size S, what is the address formula for A[i][j] (0-indexed)?

Answers for question 48

Question 49

MCQ · Single Correct 1 mark

In Column-Major storage for 2D array A[10][20] with element size S and base address B, what is the address formula for A[i][j] (0-indexed)?

Answers for question 49

Question 50

MCQ · Single Correct 1 mark

What technique in intermediate code generation for Boolean expressions fills in target labels of jump instructions when their locations become known later?

Answers for question 50
Scroll to Top