[CS-702] COMPILER DESIGN [2013-14]

Question Paper for Computer Science and Engineering

CS/B.TECH/CSE(New)/SEM-7/CS-702/2013-14

2013

COMPILER DESIGN

Time Allotted : 3 Hours Full Marks : 70

The figures in the margin indicate full marks.

Candidates are required to give their answers in their own words

as far as practicable.

GROUP – A

(Multiple Choice Type Question)

1. Choose the correct alternatives for the following: 10 x 1 = 10

i) Which of the following is the most powerful parser?

a) SLR b) LALR

c) Canonical LR d) Operator precedence.

ii) Inherited attribute is a natural choice in

a) keeping track of variable declaration

b) checking for the correct use of L values and R values

c) both (a) and (b)

d) none of these.

iii) A top down parser generates

a) rightmost derivation

b) rightmost derivation in reverse

c) leftmost derivation

d) leftmost derivation in reverse.

Attchments: