VIT Compiler Design -Semantic analysis

VIT Compiler Design -Semantic analysis

University

10 Qs

quiz-placeholder

Similar activities

Quiz 1 "Compiler Construction"

Quiz 1 "Compiler Construction"

University

15 Qs

Code Blaze - Round -1

Code Blaze - Round -1

University - Professional Development

10 Qs

Entorno de Programación - Fundamentos

Entorno de Programación - Fundamentos

University

10 Qs

Test - 2

Test - 2

University

10 Qs

Quiz 10 Teori Bahasa dan Otomata 2021-2

Quiz 10 Teori Bahasa dan Otomata 2021-2

University

10 Qs

HTML

HTML

KG - Professional Development

8 Qs

Database Management system

Database Management system

University

12 Qs

IT - IOS struktura naredbi

IT - IOS struktura naredbi

12th Grade - University

10 Qs

VIT Compiler Design -Semantic analysis

VIT Compiler Design -Semantic analysis

Assessment

Quiz

Computers

University

Medium

Created by

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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?