
25-4-22 2S5 WS21-22
Authored by P S RAMESH
Computers
University

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
XML Review Quiz
Quiz
•
University
15 questions
Automatic Speech Recognition
Quiz
•
University
15 questions
Quiz II
Quiz
•
University
10 questions
Theory of Computation Quiz
Quiz
•
University
11 questions
Quiz 1 Microsoft Word
Quiz
•
University - Professi...
15 questions
MS Word Exercise 2
Quiz
•
University
14 questions
5.3.0 Database Schema Quizizz
Quiz
•
University
10 questions
COMPILER DESIGN QUIZ 28.3.2023
Quiz
•
University
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
Discover more resources for Computers
20 questions
Disney Trivia
Quiz
•
University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
14 questions
Ch.3_TEACHER-led
Quiz
•
University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University