
Parser - unit 2 and 3

Quiz
•
Computers
•
University
•
Medium
shanthini Sampath
Used 3+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
A grammar that produces more than one parse tree for some sentence is called __________
Ambiguous
UnAmbiguous
Regular
None of the mentioned
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following derivations does a top-down parser use while parsing an input ?
Which of the following derivations does a top-down parser use while parsing an input ?
Which of the following derivations does a top-down parser use while parsing an input ?
Rightmost derivation
Rightmost derivation traced out in reverse
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following error can a compiler check?
Syntax Error
Logical Error
Both Logical and Syntax Error
Compiler cannot check errors
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
which ine of the following is a top-down parser
LR(k) parser
Operator precedence parser
Recursive Descent parser
LALR(k) parser
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements is false?
An LL(1) parser is a top-down parser
An unambiguous grammar has the same leftmost and rightmost derivation
LALR is more powerful than SLR
An ambiguous grammar can never be LR(k) for any k
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
YACC is a:
Lexical analyzer generator Parser generator
Parser generator
Semantic analyzer
None of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given grammar
S –> (L) | a
L –> L, S | S
Which of the input recognized by the grammar:
((a, a), a)
(a,a)
((a, a,a),a)
All of the above
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Compiler Design Viva 2

Quiz
•
University
15 questions
Quiz II

Quiz
•
University
20 questions
Sử dụng Word (51 - 70)

Quiz
•
University
12 questions
Lexical Analyzer in Compiler Design Quiz

Quiz
•
University
15 questions
CSE334_CA10_Lexical analysis

Quiz
•
University
10 questions
Compiler Design Lab Viva 3

Quiz
•
University
10 questions
COMPILER DESIGN QUIZ 28.3.2023

Quiz
•
University
10 questions
Compiler Design Quiz I June 18

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University