Intermediate Code Generation: GATE CS previous year questions
Intermediate Code Generation is part of Compiler Design in the GATE CS syllabus. This page lists 14 past-paper questions on it from official GATE CS papers.
Intermediate code generation
- Consider the following statements about the use of backpatching in a compiler for…
- Consider the expression (a-1) * (((b+c)/3)+d). Let X be the minimum number of registers…
- One of the purposes of using intermediate code in compilers is to
- Consider the following intermediate program in three address code p = a - b q = p * c p…
- Common Data for Questions 48 and 49: The following code segment is executed on a…
- Consider the following pseudo-code. L1: t1 = -1 L2: t2 = 0 L3: t3 = 0 L4: t4 = 4 * t3…
- Consider evaluating the following expression tree on a machine with load-store…
- Consider the following expression: x[i] = (p + r) * -s[i] + u/w. The following sequence…
- Consider the following code segment. x = u - t; y = x * v; x = y + w; y = t - z; y = x *…
- In the context of compilers, which of the following is/are NOT an intermediate…
- Consider the following statements regarding the front-end and back-end of a compiler. S1…
- In the context of abstract-syntax-tree (AST) and control-flow-graph (CFG), which one of…
- The least number of temporary variables required to create a three-address code in…
- For a C program accessing X[i][j][k], the following intermediate code is generated by a…
More Compiler Design chapters
- Lexical Analysis
- Parsing
- Syntax-Directed Translation
- Runtime Environments
- Local Optimisation
- Data Flow Analysis
Frequently asked questions
How many GATE CS questions are there on Intermediate Code Generation?
PrepWiser has 14 past-paper questions on Intermediate Code Generation from official GATE CS papers.
Are these real GATE CS questions?
Yes. Each one is from an official GATE CS paper and names its year and set. The answers come from the official answer keys.
Where are the step-by-step solutions?
Every question shows its answer, free. Step-by-step solutions, where available, are part of GATE CS Pro.