CS450 DLP Ut2 Obe
CS450 DLP Ut2 Obe
Instructions:
(i) Attempt all the questions.
Sr.No
Questions Marks CO BL
A. LALR
1. B. Canonical LR
C. SLR 1 3
D. Operator-Precedence
A. Predictive Parsing
B. Top-down Parsing 3
C. Recursive descent Parsing
D. Both a & c
Through which type of grammar can synthesized attributes can be A
simulated?
A. Ambiguous grammar
B. LR Grammer
5 1 3
C. LL grammar
D. None
6 3 E
A. 4 1 3
B. 5
C. 6
D. 7
The gramma S->SS | (S) | € is not suitable for CLR(1) parsing E
because the grammar is/are
1. Ambiguous
9 2. Left Recursive 1 3
3. Non-deterministic
A. Only I
B. Only I and II
C. Only II and III
D. I,II And III
R
YACC is an acronym for:
A. Yes Another Compile Compiler
B. Yet Another Compile Compiler
C. Yet Another Compiler Compiler
10 D. Yes Another Compiler Compiler 1 3
--*+ABC*DE+FG
12. A. (A-B)*C+(D*E)-(F+G) 1 4
B. (A+B)*C-(D-E)*(F-G)
C. (A+B-C)*(D-E)*(F+G)
D. (A+B)*C-(D*E)-(F+G)
A. Control graph
B. DAG
C. Flow graph
13. D. Hamilton graph 1 4,5
................. uses only synthesized attributes. E
A. l-attribute grammar
B. S-attribute grammar
14. 1 4
C. inherited attribute
D. None of this
A. Lexical analyzer
B. Syntax directed translation (SDT)
15. C. Parsing 1 4
D. Both option A & B
16. C. SAG 1
D. PAG
A. Access Stack
21. B. Control stack 1 6
C. Formal Stack
D. Return Stack
A. r-value
23. B. k-value 1 6
C. l-value
D. t-value
24.
A. Pass by Reference 1 6
B. Pass by Name
C. Pass by Copy-restore
D. Pass by Object
A. setReg 6
B. cinReg A
26. C. pfReg 1
D. getReg
__________ are used to keep track of memory locations where the
values of identifiers are stored.
A. Register descriptor A
27. B. Address descriptor 1 6
C. Both A and B
D. None of the above
How many descriptors are used for track both the registers (for U
availability) and addresses (location of values) while generating the
code?
28. A. 2 1 6
B. 3
C. 4
D. 5
A
x * 2 can be replaced by x << 1 is an example of?
A. a 6
30 B. INC a 1
C. DEC a
D. MUL a
Note:
CO – Course Outcomes
BL – Bloom’s Taxonomy Level