S && L Attributes

S && L Attributes

University

10 Qs

quiz-placeholder

Similar activities

Python Chapter

Python Chapter

8th Grade - University

12 Qs

DAA_C_MCQ_2

DAA_C_MCQ_2

University

10 Qs

POST-TEST MODUL 1 APSI

POST-TEST MODUL 1 APSI

University

15 Qs

TECHIE BLAZERS

TECHIE BLAZERS

University

10 Qs

SQL Queries

SQL Queries

University

10 Qs

JavaScripting

JavaScripting

University

10 Qs

Lexical and Syntax Analysis

Lexical and Syntax Analysis

University

11 Qs

XML BASICS QUIZ

XML BASICS QUIZ

University

15 Qs

S && L Attributes

S && L Attributes

Assessment

Quiz

Computers

University

Hard

Created by

Twins TR

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