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
Which of the following statements is/are true?
Consider the control flow graph shown in the figure. Which one of the following options correctly lists the set of redundant expressions (common subexpressions) in the basic blocks B and B? Note: All the variables are integers.
Which of the following grammars is/are ambiguous?
Consider the canonical parsing of the grammar below using terminals and non-terminals with as the start symbol. Which one of the following options gives the …
Which of the following statement(s) is/are TRUE while computing and during top down parsing by a compiler?
Consider two grammars and with the production rules given below: …
Given a Context-Free Grammar as follows: Which ONE of the following statements is TRUE?
Which of the following is/are Bottom-Up Parser(s)?
Consider the operator precedence and associativity rules for the integer arithmetic operators given in the table below. …
Let be a context-free grammar in Chomsky Normal Form with and containing variable symbols including the start symbol . The string is derivable from . The number of steps (application of rules) in the derivation is __________.
Consider a context-free grammar with the following rules. Let . Let denote the number of times occur in , respectively. Which of the following statements is/are TRUE?
Consider the following augmented grammar, which is to be parsed with a parser. The set of terminals is Let …
Which one of the following statements is
Consider the augmented grammar with as the set of terminals. If is the set of two items , then …
Consider the following statements. Every grammar is unambiguous but there are certain unambiguous grammars that are not . For any context-free grammar, there is a parser that takes at most time to parse a string of length . Which one of the following options is correct?
Consider the following context-free grammar where the set of terminals is . …
Consider the following augmented grammar with as the set of terminals. Let …
Consider the following grammar. The number of reduction steps taken by a bottom-up parser while accepting the string is ___________.
Which one of the following kinds of derivation is used by LR parsers?
Consider the augmented grammar given below: Let The number of items in the set is______
