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 CFG with as the non-terminal alphabet, as the terminal alphabet, as the start symbol and the following set of production rules: For …
Consider the CFG with as the non-terminal alphabet, as the terminal alphabet, as the start symbol and the following set of production rules: Which …
Consider the following two statements: P: Every regular grammar is LL(1) Q: Every regular set has a LR(1) grammar Which of the following is TRUE?
Consider the grammar with non-terminals , terminals , with as the start symbol, and the following set of rules: The grammar is NOT LL(1) because:
Which one of the following is a top-down parser?
The grammar generates the language . In this grammar what is the length of the derivation (number of steps starting from ) to generate the string with
Which one of the following grammars generates the language ?
Consider the following translation scheme. Here is a token that represents an integer and …
Consider the following statements about the context free grammar is ambiguous produces all strings with equal number of ’s and ’s can be accepted by a deterministic PDA. Which combination below expresses all the true statements …
Consider the following grammar Consider the following LR(0) items corresponding to the grammar above Given the items above, which two of them will appear in the same set in the …
Consider the following expression grammar. The semantic rules for expression evaluation are stated next to each grammar production. …
Consider line number of the following C-program. int main() { /*Line 1 */ int I, N; /*Line 2 */ fro (I=0, I<N, I++); /*Line 3 */ } Identify the compiler’s response about this line while creating the object-module:
Statement for Linked Answer Questions 83a & 83b: Consider the following expression grammar. The semantic rules for expression evaluation are stated next to each grammar production. …
Consider the grammar: Let the number of states in SLR (1), LR(1) and LALR(1) parsers for the grammar be and respectively. The following relationship holds good:
Consider the grammar: For a sentence , the handles in the right-sentential form of the reduction are:
The grammar is not suitable for predictive-parsing because the grammar is:
Consider the following grammar G: Let and denote the number of a’s and b’s in a string respectively. The language over generated by is
Consider a program that consists of two source modules and contained in two different files. If contains a reference to a function defined in the reference will be resolved at
Which of the following grammar rules violate the requirements of an operator grammar? are nonterminals, and are terminals.
Consider the translation scheme shown below. num (num.val) Here num is a token that represents an integer and num.val represents the corresponding integer value. For an input string ‘’, this translation scheme will …
