Lexical Analysis: GATE CS Previous Year Questions

Lexical Analysis · Compiler Design

8 questions · asked in 7 of 27 years (2000–2026)

MCQ 7 · NAT 11-mark 7 · 2-mark 1

2000Questions per year2026

Questions 6–8 of 8

Q6GATE 20111 markMCQ−0.33 if wrong
In a compiler, keywords of a language are recognized during

Q7GATE 20101 markMCQ−0.33 if wrong
Which data structure in a compiler is used for managing information about variables and their attributes?

Q8GATE 20001 markMCQ−0.33 if wrong
The number of tokens in the following C statement is
 printf("i=%d, &i=%x", i, &i);

Keep practising

Topics in Compiler Design

All CS topics ›