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

lexical-analysis

GATE CSE & IT · Lexical Analysis · 1988-2026

13
PYQs
92%
keyed
0
elite explanations
10
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

A lexical analyzer uses the following token definitions letter → [A - Za - z] digit → [0-9] id → letter (letter $\mid$ digit)* number → digit $^{+}$ ws → (blank | tab | newline) ${...

mediumbasic explanation
2025 Q12

Which ONE of the following statements is FALSE regarding the symbol table?

mediumanswer key
2024 Q21

Consider the following two sets: Set X P. Lexical Analyzer Q. Syntax Analyzer R. Intermediate Code Generator S. Code Optimizer Set Y 1. Abstract Syntax Tree 2. Token 3. Parse Tree...

mediumanswer key
2024 PYQ

Consider the following two sets: Set X P. Lexical Analyzer Q. Syntax Analyzer R. Intermediate Code Generator S. Code Optimizer Set Y 1. Abstract Syntax Tree 2. Token 3. Parse Tree...

easyanswer keybasic explanation
2018 PYQ

A lexical analyzer uses the following patterns to recognize three tokens $${T_1},{T_2},$$ and $${T_3}$$ over the alphabet $$\left\{ {a,b,c} \right\}.$$ $$\eqalign{ & {T_1}:\,\,\,a?...

mediumanswer keybasic explanation
2011 PYQ

In a compiler, keywords of a language are recognized during

easyanswer key
2011 PYQ

The lexical analysis for a modern computer language such as java needs the power of which one of the following machine model in a necessary and sufficient sense?

easyanswer key
2005 PYQ

Consider line number 3 of the following C - program. int main ( ) { /* Line 1 */ int I, N; /* Line 2 */ fro (I = 0, I < N, I++); /* Line 3 */ } Identify the compiler's response abo...

mediumanswer key
2000 PYQ

The number of tokens in the following C statement is: printf("i = %d, &i = %x",i, &i);

easyanswer key
1999 PYQ

The number of tokens in the Fortran statement DO 10 I = 1.25 is

mediumanswer keybasic explanation
1995 PYQ

Which of the following strings can definitely be said to be tokens without looking at the next input character while compiling a Pascal program? I. begin II. program III. <>

mediumanswer key
1995 PYQ

In some programming languages, an identifier is permitted to be a letter following by any number of letters or digits. If L and D denote the sets of letters and digits respectively...

easyanswer key
1988 PYQ

In a compiler the module that checks every character of the source text is called:

easyanswer key