Syntax Directed Definition

Syntax Directed Definition

University

10 Qs

quiz-placeholder

Similar activities

Input, output and storage de

Input, output and storage de

8th Grade - Professional Development

14 Qs

Computer Architecture Unit 3

Computer Architecture Unit 3

University

15 Qs

BCA

BCA

University

10 Qs

Assessment 08

Assessment 08

University

15 Qs

Information Technology & Business Canvas Model

Information Technology & Business Canvas Model

University

13 Qs

CID421 Introduction to 3D CAD SOLIDWORK

CID421 Introduction to 3D CAD SOLIDWORK

University

12 Qs

GIS Unit-1

GIS Unit-1

University

15 Qs

Microcontroller

Microcontroller

11th Grade - University

10 Qs

Syntax Directed Definition

Syntax Directed Definition

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

ALDO STALIN J L

Used 19+ 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

What data structure in a compiler is used for managing information about variables and their attributes?

Abstract syntax tree

Symbol table

Semantic stack

Parse table

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What value does the variable a have after ALL of the code above executes?


int a;

int b;

a=1;

b=a++;

1

2

3

None

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

In a syntax directed translation scheme, if value of an attribute of a node is a function of the values of the attributes of its children, then it is called

synthesized attribute

inherited attribute

canonical attribute

None of the above

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Inherited attribute is a natural choice in

keeping track of variable declaration

checking for the correct use of L-values and R-values

both (a) and (b)

None of these

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Syntax directed translation scheme is desirable because

it is based on the syntax

its description is independent of any implementation

it is easy to modify

all of these

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which is not true about syntax and semantic parts of a computer language?

Syntax is generally checked by the programmer.

Semantics is the responsibility of the programmer

Semantics is checked mechanically by a computer.

Both (b) and (c)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Type checking is normally done during

lexical analysis

syntax analysis

syntax directed translation

code optimization

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?

Discover more resources for Computers