Lexical Analysis
Study notes are awaiting editorial approval. You can still practise the reviewed questions below.
Related previous-year questions
Practise this topic- 2026 · A lexical analyzer uses the following token definitions * $letter \rightarrow [A - Za - z]$ * $digit \rightarrow [0 - 9]$ * $id \rightarrow letter (le
- 2025 · Which ONE of the following statements is FALSE regarding the symbol table?
- 2024 · Consider the following two sets: | Set X | Set Y | |---|---| | P. Lexical Analyzer | 1. Abstract Syntax Tree | | Q. Syntax Analyzer | 2. Token | | R.
- 2023 · 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 ta
- 2023 · Consider the following definition of a lexical token `id` for an identifier in a programming language, using extended regular expressions: $$\begin{al
- 2021 · Consider the following ANSI C program: ```c int main() { Integer x; return 0; } ``` Which one of the following phases in a seven-phase C com
- 2018 · 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
- 2016 · Match the following: (P) Lexical analysis --- (i) Leftmost derivation (Q) Top down parsing --- (ii) Type checking (R) Semantic analysis --- (iii) Reg
- 2015 · Match the following: P. Lexical analysis Q. Parsing R. Register allocation S. Expression evaluation 1. Graph coloring 2. DFA minimization 3. Post-or