GATE CS Parsing (LL, LR) questions
Practise Parsing (LL, LR) questions for GATE CS. Explore official PYQs and original topic-wise quizzes, check answers and view available solutions. Free, no sign-in.
Subject, topic, year and type filter the full library. Match any choice within a filter, and all selected filter categories. Search, source and sort apply to this page.
20 on this page
Consider the grammar shown below. This grammar is
Assume that the SLR parser for a grammar G has states and the LALR parser for G has states. The relationship between and is
Which of the following suffices to convert an arbitrary CFG to an LL(1) grammar?
To evaluate an expression without any embedded function calls
Which of the following statements is false?
Given the following expression grammar: Which of the following is true?
Which of the following derivations does a top-down parser use while parsing an input string? The input is scanned from left to right.
A grammar that is both left and right recursive for a non-terminal, is
Which of the following is the most powerful parsing method?
Type checking is normally done during
Which of the following statements is true?
In the following grammar Which of the following is true?
The grammar whose productions are is ambiguous because if a then if b then c:= d has more than two parse …
Consider a grammar with the following productions The above grammar is:
Which of the following features cannot be captured by context-free grammars?
If is a context free grammar and is a string of length in , how long is a derivation of in , if is in Chomsky normal form?
Consider the and parsing tables for a context free grammar. Which of the following statement is/are true?
For a context free grammar, FOLLOW(A) is the set of terminals that can appear immediately to the right of non-terminal in some "sentential" form. We define two sets LFOLLOW(A) and RFOLLOW(A) by replacing the word "sentential" by "left sentential" and "right most sentential" respectively in the definition of FOLLOW (A).
An operator precedence parser is a
A context-free grammar is ambiguous if:
