VIT Compiler Design -Semantic analysis

VIT Compiler Design -Semantic analysis

University

10 Qs

quiz-placeholder

Similar activities

Algorithms

Algorithms

University

12 Qs

POST-TEST MODUL 1 APSI

POST-TEST MODUL 1 APSI

University

15 Qs

Overview of Java Web Development

Overview of Java Web Development

University

10 Qs

Topic 4-2: Multiple if-else and switch-case

Topic 4-2: Multiple if-else and switch-case

University

10 Qs

Chap 1: What is a program made of?

Chap 1: What is a program made of?

University

13 Qs

Round 2 Debug-The-Code

Round 2 Debug-The-Code

University

15 Qs

Q7 - Info Mgt

Q7 - Info Mgt

University

10 Qs

Week6-ERD-2

Week6-ERD-2

University

13 Qs

VIT Compiler Design -Semantic analysis

VIT Compiler Design -Semantic analysis

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Suganya Ram

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?