Skip to content
Early access — you're among the first to try PYQLabs. Share feedback
Concept drill

semantic-analysis

GATE CSE & IT · Semantic Analysis · 1998-2026

8
PYQs
88%
keyed
0
elite explanations
6
years appeared

Study anchor

Hopcroft-Ullman / Dragon Book

Automata, languages, parsing, syntax-directed translation

Practice action

Start latest PYQ

PYQs in this concept

All concepts →
2026 PYQ

$$ \text { Consider the following two syntax-directed definitions SDD1 and SDD2 for type declarations. } $$ SDD1 Grammar(G1) $$ \text { Semantic Rules } $$ $$ \mathrm{D} \rightarro...

mediumanswer keybasic explanation
2025 PYQ

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 ;...

mediumanswer keybasic explanation
2023 PYQ

Consider the syntax directed translation given by the following grammar and semantic rules. Here N, I, F and B are non-terminals. N is the starting non-terminal, and #, 0 and 1 are...

mediumbasic explanation
2021 PYQ

Consider the following grammar (that admits a series of declarations, followed by expressions) and the associated syntax directed translation (SDT) actions, given as pseudo-code: P...

mediumanswer keybasic explanation
2021 PYQ

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?

easyanswer keybasic explanation
2020 PYQ

Consider the following statements. I. Symbol table is accessed only during lexical analysis and syntax analysis. II. Compilers for programming languages that support recursion nece...

easyanswer keybasic explanation
2020 PYQ

Consider the productions A $$ \to $$ PQ and A $$ \to $$ XY. Each of the five non-terminals A, P, Q, X, and Y has two attributes: s is a synthesized attribute, and i is an inherited...

mediumanswer keybasic explanation
1998 PYQ

Type checking is normally done during

easyanswer key