
25-4-22 2S5 WS21-22

Quiz
•
Computers
•
University
•
Hard
P S RAMESH
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements is false?
Left as well as right most derivations can be in Unambiguous grammar
An LL (1) parser is a top-down parser
LALR is more powerful than SLR
Ambiguous grammar can’t be LR (k)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the following expression grammar:
E -> E * F | F+E | F
F -> F-F | id
which of the following is true?
* has higher precedence than +
– has higher precedence than *
+ and — have same precedence
+ has higher precedence than *
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following suffices to convert an arbitrary CFG to an LL(1) grammar?
Removing left recursion only
Factoring the grammar alone
Factoring & left recursion removal
None of the mentioned
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Assume that the SLR parser for a grammar G has n1 states and the LALR parser for G has n2 states.
n1 is necessarily less than n2
n1 is necessarily equal to n2
n1 is necessarily greater than n2
none of the mentioned
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following describes a handle (as applicable to LR-parsing) appropriately?
Position where next reduce or shift operation will occur
The next step has use of Non-terminal for reduction
Used for reduction in a coming-up step along with a position in the sentential form where the next shift or reduce operation will occur
Used in the next step for reduction along with a position in the sentential form where the right hand side of the production may be found
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one of the following is a top-down parser?
Recursive descent parser
Operator precedence parser
An LR(k) parser
An LALR(k) parser
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The grammar A → AA | (A) | e is not suitable for predictive-parsing because the grammar is?
Ambiguous
Left recursive
Right recursive
An operator grammar
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Statistical Parsing Quiz

Quiz
•
University
8 questions
Programming Basics

Quiz
•
KG - University
15 questions
TEST-1-PREP

Quiz
•
University
5 questions
Leading and Trailing

Quiz
•
University
11 questions
IoT & Applications

Quiz
•
University
10 questions
Workshop_2

Quiz
•
University
10 questions
COMPILER DESIGN QUIZ

Quiz
•
University
10 questions
Coding - Computer Programming

Quiz
•
KG - University
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade