
Parsing
Authored by Akashdeep Sharma
Computers
University
Used 16+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following lexical entries can be derived from <word>
I. pick
II picks
III c44
I, II AND III
I and II only
I and III only
II and III only
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A bottom up parser generates __________.
Right most derivation
Rightmost derivation in reverse
Leftmost derivation
Leftmost derivation in reverse
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Shift reduce parsers are __________.
Top down Parser
Bottom Up parser
May be top down or bottom up
None of the mentioned
4.
MULTIPLE CHOICE QUESTION
45 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
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Consider the grammar defined by the following production rules:
S --> T * P
T --> U | T * U
P --> Q + P | Q
Q --> Id
U --> Id
Which one of the following is TRUE?
+ is left associative, while ∗ is right associative
+ is right associative, while ∗ is left associative
Both + and ∗ are right associative
Both + and ∗ are left associative
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following grammar rules violate the requirements of an operator grammar?
(i) P -> QR
(ii) P -> QsR
(iii) P -> ε
(iv) P -> QtRr
(i) only
(i) and (iii) only
(ii) and (iii) only
(iii) and (iv) only
7.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of the following actions an operator precedence parser may take to recover from an error?
Delete symbols from the stack
Insert symbols onto the stack
Inserting or deleting symbols from the input
Stop the parsing
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
10 questions
Server Administration- Quiz 1
Quiz
•
12th Grade - University
11 questions
Computer Science (1-9) - Identifying & Preventing Threats
Quiz
•
University
14 questions
Semi-Long Quiz#1 - SAM, NW3A-3E
Quiz
•
University
13 questions
Computer Science: CPU performance
Quiz
•
University
12 questions
CIS1103 Week 9_10 CLO3 Part 1
Quiz
•
University
14 questions
IOTA : Web Development Bootcamp Quiz 2
Quiz
•
University
11 questions
What is a computer
Quiz
•
KG - University
16 questions
Algo Quiz
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade