Parsing: GATE CS previous year questions
Parsing is part of Compiler Design in the GATE CS syllabus. This page lists 26 past-paper questions on it from official GATE CS papers.
Parsing
- Consider the following context-free grammar where the start symbol is S and the set of…
- Consider the following context-free grammar where the set of terminals is {a, b, c, d…
- Consider the augmented grammar with {+, *, (, ), id} as the set of terminals. S' → SS →…
- Consider the following two sets of LR(1) items of an LR(1) grammar. X → c.X, c/d, X →…
- Which one of the following grammars is free from left recursion ?
- Consider the following augmented grammar with {#, @, <, >, a, b, c} as the set of…
- Consider the canonical LR(0) parsing of the grammar below using terminals {a, b, c} and…
- Consider the following grammar G S → F | H ; F → p | c ; H → d | c where S, F, and H are…
- Consider the grammar defined by the following production rules, with two operators * and…
- Consider the following grammar. S → aSB | dB → b The number of reduction steps taken by…
- Which one of the following statements is FALSE ?
- Which of the following statement(s) is/are TRUE while computing First and Follow during…
- Which of the following statements about parser is/are CORRECT? I. Canonical LR is more…
- Which one of the following is TRUE at any valid state in shift-reduce parsing?
- Consider the following grammar: P → xQRS ; Q → yz | z ; R → w | ε ; S → y What is…
- Consider the augmented grammar given below: S' → SS → ⟨ L ⟩ | idL → L,S | S Let I₀ =…
- Consider the grammar given below: S → Aa ; A → BD ; B → b | ε ; D → d | ε Let a, b, d…
- Consider the following expression grammar G: E -> E - T | T T -> T + F | F F -> (E) | id…
- Which one of the following kinds of derivation is used by LR parsers?
- Given a Context-Free Grammar G as follows: S → Aa | bAc | dc | bdaA → d Which ONE of the…
More Compiler Design chapters
- Lexical Analysis
- Syntax-Directed Translation
- Runtime Environments
- Intermediate Code Generation
- Local Optimisation
- Data Flow Analysis
Frequently asked questions
How many GATE CS questions are there on Parsing?
PrepWiser has 26 past-paper questions on Parsing 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.