
Sr Parsers
Quiz
•
Engineering
•
University
•
Practice Problem
•
Hard
Sindhu S
Used 2+ times
FREE Resource
Enhance your content in a minute
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the grammar
S -> A
A -> $B$ | id
B -> B,A | A
If I0 = CLOSURE[S -> .A] then how many items be in the set for GOTO(I0, $)
Consider the grammar
S -> A
A -> $B$ | id
B -> B,A | A
If I0 = CLOSURE[S -> .A] then how many items be in the set for GOTO(I0, $)
3
4
5
6
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of the following kind of derivation is used by LR parsers?
Leftmost
Leftmost in reverse
Rightmost
Rightmost in reverse
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statemnets about parser is/are correct?
I. Canonical LR is more powerful than SLR
II. SLR is more powerful than LALR
III. SLR is more powerful than Canonical LR
I only
II only
III only
II and III only
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Assume that the SLR parser for a grammar G has n1 states and the LALR parser for G has n2 states. The relationship between n1 and n2 is:
n1 is necessarily less than n2
n1 is necessarily equal to n2
n1 is necessarily greater than n2
none of the options
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of the following is true for shift reduce parsers?
Scans and parses the input in one forward pass over the text, without any backup
A shift command advances in the input stream by one symbol
LALR parser
all of the mentioned
6.
MULTIPLE CHOICE QUESTION
5 sec • 1 pt
Which of the following can be a LALR parser generator?
YACC
GNU Bison
YACC and GNU Bison
None of the mentioned
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following 2 sets of LR(1) items of an LR(1) grammar.
X -> c.X, c|d X -> c.X, $
X->.cX, c|d X->.cX, $
X->.x, c|d X->.d, $
Which of the following statements related to merging of the 2 sets in the corresponding LALR parser is/are FALSE?
Cannot be merged since lookaheads are different
Can be merged but will result in SR conflict
Can be merged but will result in RR conflict
Cannot be merged since GOTO on c will lead to two different sets
1 only
2 only
1 and 4 only
1,2,3 and 4
Create a free account and access millions of resources
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
20 questions
INTELLIGENT CONTROL IN ROBOTICS
Quiz
•
University
25 questions
ELECTRO 3 Midterm Summative Exam
Quiz
•
University
25 questions
HTTP and Networking Quiz
Quiz
•
University
25 questions
Qualifier Set B
Quiz
•
University
20 questions
Natural Language Processing CT-2
Quiz
•
University
20 questions
GOBIERNO ELECTRÓNICO DER_INF
Quiz
•
University
20 questions
Calgary's Shaganappi Bridge
Quiz
•
10th Grade - University
20 questions
PRIMER CONCURSO DE SELECCIÓN INTERNO - INVESTIGACIONES 2024-2
Quiz
•
University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Engineering
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
9 questions
Principles of the United States Constitution
Interactive video
•
University
18 questions
Realidades 2 2A reflexivos
Quiz
•
7th Grade - University
10 questions
Dichotomous Key
Quiz
•
KG - University
25 questions
Integer Operations
Quiz
•
KG - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University
20 questions
SER vs ESTAR
Quiz
•
7th Grade - University
