Given the following expression grammar:
E -> E * F | F + E | F
F -> F - F | id
which of the following is true?
Compiler Quiz on Parsers
Quiz
•
Computers
•
University
•
Hard
vijay vasanth
Used 2+ times
FREE Resource
5 questions
Show all answers
1.
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 *
+' has higher precedence
+' has higher precedence than *
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following derivations does a bottom up parser use while parsing an input string?
Leftmost derivation
Leftmost derivation in reverse
Rightmost derivation
Rightmost derivation in reverse
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Among simple LR (SLR), canonical LR, and look-ahead LR (LALR), which of the following pairs identify the method that is very easy to implement and the method that is the most powerful, in that order?
SLR, LALR
Canonical LR, LALR
SLR, canonical LR
LALR, canonical LR
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is correct?
r? = r . R
r? = r / έ
r? = r / r*
r? = r . r*
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A form of recursive-descent parsing that does not require any back-tracking is known as?
predictive parsing
non-predictive parsing
recursive parsing
non-recursive parsing
5 questions
Compiler Design
Quiz
•
University
10 questions
TSSR - S14 - Journalisation et supervision
Quiz
•
University
7 questions
XML and JSON Parsing Quiz
Quiz
•
University
10 questions
Blender Basics
Quiz
•
6th Grade - University
10 questions
Quizz3 Ciencia de Datos
Quiz
•
University
10 questions
Compiler Design
Quiz
•
University
10 questions
Android
Quiz
•
University
10 questions
CompTIA A+ Objectives 2.1-2.4
Quiz
•
University
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines
Quiz
•
Professional Development
12 questions
Dividing Fractions
Quiz
•
6th Grade