
Parsing

Quiz
•
Computers
•
University
•
Medium
Akashdeep Sharma
Used 16+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Android

Quiz
•
University
12 questions
Compiler Design

Quiz
•
University
17 questions
U1. Files and Serialization

Quiz
•
University
15 questions
XML BASICS QUIZ

Quiz
•
University
10 questions
TECHIE BLAZERS

Quiz
•
University
10 questions
Compiler Design

Quiz
•
University
16 questions
Quiz on Syntax and Semantic Parsing

Quiz
•
University
14 questions
OOP Introduction

Quiz
•
12th Grade - University
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

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

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade