1
GATE CSE 2025 Set 2
MCQ (Single Correct Answer)
+1
-0.33
Consider the following statements about the use of backpatching in a compiler for
(I) Backpatching can be used to generate code for Boolean expression in one pass.
(II) Backpatching can be used to generate code for flow-of-control statements in one pass.
Which ONE of the following options is CORRECT?
2
GATE CSE 2025 Set 2
MCQ (Single Correct Answer)
+1
-0.33
Given the following syntax directed translation rules :
Rule 1 : $R \rightarrow A B\{B . i=R . i-1 ; A . i=B . i R . i=A . i+1 ;\}$
Rule 2 : $P \rightarrow C D\{P . i=C . i+D . i ; D . i=C . i+2\}$
Rule 3 : $Q \rightarrow E F\{Q . i=E . i+F . i ;\}$
Which ONE is the CORRECT option among the following?
3
GATE CSE 2021 Set 2
MCQ (Single Correct Answer)
+1
-0.33
Consider the following ANSI C program:
int main() {
Integer x;
return 0;
}
Which one of the following phases in a seven-phase C compiler will throw an error?
4
GATE CSE 2016 Set 1
Numerical
+1
-0
Consider the following code segment.
x = u - t;
y = x * v;
x = y + w;
y = t - z;
y = x * y;
The minimum number of total variables required to convert the above code segment to static
single assignment form is .Your input ____
Questions Asked from Syntax Directed Translation (Marks 1)
Number in Brackets after Paper Indicates No. of Questions
GATE CSE Subjects
Theory of Computation
Operating Systems
Algorithms
Database Management System
Data Structures
Computer Networks
Software Engineering
Compiler Design
Web Technologies
General Aptitude
Discrete Mathematics
Programming Languages