VIT Compiler Design -Semantic analysis

VIT Compiler Design -Semantic analysis

University

10 Qs

quiz-placeholder

Similar activities

CS2505 Compiler Optimization - Quiz-1

CS2505 Compiler Optimization - Quiz-1

University

10 Qs

Info Sys Dev

Info Sys Dev

KG - University

10 Qs

Knowledge representations

Knowledge representations

University

10 Qs

PPL

PPL

University

10 Qs

JavaScript Basics

JavaScript Basics

12th Grade - University

15 Qs

Compiler Design

Compiler Design

University

15 Qs

Syntax Directed Definition

Syntax Directed Definition

University

10 Qs

HTML

HTML

University - Professional Development

15 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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?