S && L Attributes

S && L Attributes

University

10 Qs

quiz-placeholder

Similar activities

EECE 1313 Quiz 1

EECE 1313 Quiz 1

University

15 Qs

java quiz on Encapsulation and Abstraction

java quiz on Encapsulation and Abstraction

University

10 Qs

Session 2

Session 2

University

10 Qs

Python with DataScience

Python with DataScience

7th Grade - University

10 Qs

WT Assignment-1

WT Assignment-1

University

15 Qs

Pemkom 8

Pemkom 8

University

10 Qs

04 - Disjoint Sets

04 - Disjoint Sets

University

15 Qs

SQE Unit 2

SQE Unit 2

University

10 Qs

S && L Attributes

S && L Attributes

Assessment

Quiz

Computers

University

Hard

Created by

ALDO STALIN J L

Used 3+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The inter-dependencies among synthesized and inherited attributes at nodes in parse tree is depicted using_______.

Dependency graph

Directed Acyclic graph

Interdependency graph

Wait for Graph

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Consider node for production T-->T1*F , so the T.val at this node defined by

T.val:=T1.val*F1.val

T.val:=T1.val*F1.val

T.val: =T1.val*F. val

T.val: =T.val*F. val

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Translation scheme with left recursive grammar for production E->E1+T is

E.val:=E1.val+T.val

E.val:=E.val + T.val

Both a and b

None of these

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

L-attributed definitions include all syntax directed definitions of

LL(1) grammar

LK(1) grammar

LR(0) grammar

Both a & c

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

------------------ syntax for mknode is:

mknode (op ,left)

mknode (id ,left ,right)

mknode (op ,right)

mknode (op ,left ,right)

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

-------------syntax of mkleaf is:

mkleaf (id , num)

mkleaf (num , val)

mkleaf (id , entry)

Both b & c

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In an L-attributed SDD , attributes may be inherited or synthesized.

True

False

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?