Lexical Analysis: GATE CS previous year questions
Lexical Analysis is part of Compiler Design in the GATE CS syllabus. This page lists 11 past-paper questions on it from official GATE CS papers.
Lexical analysis
- Match the following according to input (from the left column) to the compiler phase (in…
- The lexical analysis for a modern computer language such as Java needs the power of…
- Consider the following definition of a lexical token id for an identifier in a…
- Consider the following two sets: Set X | Set Y ; P. Lexical Analyzer | 1. Abstract…
- In a compiler, keywords of a language are recognized during
- A lexical analyzer uses the following token definitions letter → [A-Za-z] digit → [0-9]…
- Which ONE of the following statements is FALSE regarding the symbol table?
- Match the following: List I | List II; (P) Lexical analysis | (i) Leftmost derivation…
- Match the following: P. Lexical analysis | 1. Graph coloring; Q. Parsing | 2. DFA…
- A lexical analyzer uses the following patterns to recognize three tokens T₁, T₂, and T₃…
- Consider the following C statements: char *str1 = "Hello; /* Statement S1 */ char *str2…
More Compiler Design chapters
- Parsing
- Syntax-Directed Translation
- Runtime Environments
- Intermediate Code Generation
- Local Optimisation
- Data Flow Analysis
Frequently asked questions
How many GATE CS questions are there on Lexical Analysis?
PrepWiser has 11 past-paper questions on Lexical Analysis 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.