Consider the grammar E -> E + id | E × id | id. For a sentence id +id × id the handles in the right sentential form of the reduction are

COMPILER DESIGN LAB QUIZ

Quiz
•
Computers
•
University
•
Hard
J Badajena
Used 1+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Id, E + id and E + E × id
Id, E + id and E + id × id
Id, E + id and E × id
id, id + id and id + id × id
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Let 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 given options
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
SLR, Canonical LR
LALR, Canonical LR
None of the given options
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is permanent database in the general model of a compiler?
Terminal table
Identifier table
Literal table
Reduction Table
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which variable does not drive a terminal string in grammar?S→AB ,A→a,B→b,B → C
A
B
C
S
Similar Resources on Wayground
8 questions
CD Quiz Batch B2 1a and 1 b programs

Quiz
•
University
10 questions
Apps Script Quiz - Day 4 Lesson

Quiz
•
University
10 questions
DBMS Quiz1

Quiz
•
University - Professi...
10 questions
RDBMS

Quiz
•
University
7 questions
CSS Rules Quiz-unit 4 CodeHS

Quiz
•
7th Grade - University
5 questions
Leading and Trailing

Quiz
•
University
10 questions
VIT Compiler Design -Semantic analysis

Quiz
•
University
6 questions
CD C1 batch Viva

Quiz
•
University
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade