Parsing
Study notes are awaiting editorial approval. You can still practise the reviewed questions below.
Related previous-year questions
Practise this topic- 2026 · Which of the following statements is/are true?
- 2026 · Consider the canonical $LR(0)$ parsing of the grammar below using terminals $\{a, b, c\}$ and non-terminals $\{A, B, C, S\}$ with $S$ as the start sym
- 2025 · Given a Context-Free Grammar $G$ as follows: $S \rightarrow Aa \mid bAc \mid dc \mid bda$ $A \rightarrow d$ Which ONE of the following statements is
- 2025 · Which of the following statement(s) is/are TRUE while computing First and Follow during top down parsing by a compiler?
- 2025 · Consider two grammars $G_1$ and $G_2$ with the production rules given below: $G_1: S \rightarrow \text{if } E \text{ then } S \mid \text{if } E \text
- 2024 · Which of the following is/are Bottom-Up Parser(s)?
- 2024 · Consider the following context-free grammar where the start symbol is $S$ and the set of terminals is $\{a,b,c,d\}$. $S \to AaAb \mid BbBa$ $A \to cS
- 2024 · Consider the following augmented grammar, which is to be parsed with a SLR parser. The set of terminals is $\{a,b,c,d,\#,@\}$ $S' \to S$ $S \to SS \m
- 2022 · Which one of the following statements is TRUE?
- 2022 · Consider the augmented grammar with $\{+, *, (, ), \text{id}\}$ as the set of terminals. $$S' \to S$$ $$S \to S + R \mid R$$ $$R \to R * P \mid P$$ $
- 2021 · Consider the following statements. $S_1$: Every SLR(1) grammar is unambiguous but there are certain unambiguous grammars that are not SLR(1). $S_2$: F
- 2021 · Consider the following context-free grammar where the set of terminals is $\{a, b, c, d, f\}$. $S \to daT \mid Rf$ $T \to aS \mid baT \mid \epsilon$ $