GATE Compiler Design: Lexical Analysis – Previous Year Questions
6 GATE previous year questions on Lexical Analysis (Compiler Design, Computer Science) with answers and explanations, from every paper.
- GATE 2018 CS Q47 – A lexical analyzer uses the following patterns to recognize three tokens T 1, T 2, and T 3 over the alphabet \a,b,c\. T 1: a?(b c)*a T 2: b?(a c)*b T…
- GATE 2026 CS (CS2) Q35 – A lexical analyzer uses the following token definitions: - letter [A-Za-z] - digit [0-9] - id letter(letter digit)* - number digit+ - ws (blank tab…
- GATE 2026 CS (CS1) Q27 – Consider the following C statements: Which of the following statements is/are true?
- GATE 2025 CS (CS1) Q12 – Which ONE of the following statements is FALSE regarding the symbol table?
- GATE 2023 CS Q11 – Consider the following statements regarding the front-end and back-end of a compiler. S1: The front-end includes phases that are independent of the…
- GATE 2023 CS Q19 – Consider the following definition of a lexical token id for an identifier in a programming language, using extended regular expressions: letter →…