
VIT Compiler Design -Semantic analysis

Quiz
•
Computers
•
University
•
Medium
Suganya Ram
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which attributes get values from the attribute values of their child nodes?
Synthesized attributes
Inherited attributes
S-attributed SDT
L-attributed SDT
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
____________ is a medium to provide semantics to the context-free grammar
Domain grammer
Attribute grammar
Object grammer
Value grammer
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is true about Syntax Directed Definitions?
Syntax Directed Definitions + Parse tree = CFG
Syntax Directed Definitions + Semantic rules = CFG
Syntax Directed Definitions + CFG = Semantic rules
CFG + Semantic rules = Syntax Directed Definitions
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Each interior node represents an operator.
Each leaf node represents an
operand.
Syntax tree
Parse tree
DAG
Transition diagram
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
2. Which of the following statement is true?
SLR powerful than LALR
Canonical LR powerful than LALR parser
The parsers SLR= Canonical LR=LALR
LALR powerful than Canonical LR parser
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
______________ is an attribute of the non-terminal on the left-hand side of a production with semantic value
Annotated attribute
Synthesized attribute
Inherited Attributes
L-Attribute
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Attributes in ____________ are evaluated by depth-
first and left-to-right parsing manner.
L-attributed SDTs
S-attributed SDTs
I-attributed SDTs
CFG
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
COMPILER DESIGN QUIZ

Quiz
•
University
15 questions
XML BASICS QUIZ

Quiz
•
University
10 questions
Compiler Parsing Techniques

Quiz
•
University
15 questions
HTML

Quiz
•
University - Professi...
15 questions
ER MODEL

Quiz
•
University
10 questions
Overview of Java Web Development

Quiz
•
University
10 questions
TECHIE BLAZERS

Quiz
•
University
10 questions
WINTER 24-25 CD

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade