Syntax Directed Definition

Syntax Directed Definition

University

10 Qs

quiz-placeholder

Similar activities

TECHIE BLAZERS

TECHIE BLAZERS

University

10 Qs

XML BASICS QUIZ

XML BASICS QUIZ

University

15 Qs

Chapter 1 Python

Chapter 1 Python

8th Grade - University

12 Qs

QUIZ CD S5 7-4-22

QUIZ CD S5 7-4-22

University

10 Qs

PPL

PPL

University

10 Qs

IMD318 - Basic HTML Structure

IMD318 - Basic HTML Structure

University

15 Qs

Activity 3

Activity 3

University

10 Qs

CD Class test

CD Class test

University

5 Qs

Syntax Directed Definition

Syntax Directed Definition

Assessment

Quiz

Computers

University

Hard

Created by

Twins TR

Used 19+ times

FREE Resource

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

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?