Crack
GATE
C
G
Topic
Intermediate Code Generation
Compiler Design
0
/ 10 done
Questions per paper
All
MCQ
MSQ
NAT
2015 to 2026. Point at a year to read it.
0
1
2015
2019
2021
2023
2025
2026
Show as a table
Year
All
MCQ
MSQ
NAT
2015
1
0.7
0
0.3
2018
0
0
0
0
2019
0
0
0
0
2020
0
0
0
0
2021
1
0
0.5
0.5
2022
0
0
0
0
2023
1
1
0
0
2024
1
1
0
0
2025
1
0.5
0
0.5
2026
0
0
0
0
1
CS 2025 Set 1 · 2 marks · NAT · Moderate
Refer to the given 3-address code sequence. This code sequence is split into basic blocks. The number of basic blocks is ________. (Answer in integer)
2
CS 2025 Set 2 · 1 mark · MCQ · Moderate
Consider the following statements about the use of backpatching in a compiler for intermediate code generation:
3
CS 2024 Set 1 · 2 marks · MCQ · Moderate
Consider the following pseudo-code.
4
CS 2024 Set 2 · 2 marks · MCQ · Moderate
Consider the following expression:
x
[
i
]
=
(
p
+
r
)
∗
−
s
[
i
]
+
u
/
w
x[i] = (p + r) * -s[i] + u/w
x
[
i
]
=
(
p
+
r
)
∗
−
s
[
i
]
+
u
/
w
. The following sequence shows the list of triples representing the given expression, with entries missing for triples (1), (3), and (6).
5
CS 2023 · 1 mark · MCQ · Easy
Consider the following statements regarding the front-end and back-end of a compiler.
6
CS 2021 Set 1 · 2 marks · NAT · Moderate
Consider the following C code segment:
7
CS 2021 Set 2 · 1 mark · MSQ · Easy
In the context of compilers, which of the following is/are NOT an intermediate representation of the source program?
8
CS 2015 Set 1 · 2 marks · NAT · Moderate
The least number of temporary variables required to create a three-address code in static single assignment form for the expression
q
+
r
/
3
+
s
−
t
∗
5
+
u
∗
v
/
w
q + r / 3 + s - t * 5 + u * v / w
q
+
r
/3
+
s
−
t
∗
5
+
u
∗
v
/
w
is ____.
9
CS 2015 Set 2 · 1 mark · MCQ · Moderate
In the context of abstract-syntax-tree (AST) and control-flow-graph (CFG), which one of the following is TRUE?
10
CS 2015 Set 2 · 2 marks · MCQ · Moderate
Consider the intermediate code given below.