Showing posts with label Compiler Construction. Show all posts
Showing posts with label Compiler Construction. Show all posts

Friday, 13 November 2015

B.Tech 2011 CS Compiler Construction (CC) previous year questions

B.Tech 2011 CS Compiler Construction (CC) previous year questions


Q.1 Consider the following grammar G:

E →TE'

T → +TE'/∈

T → FT'

T' → *FT'/∈

F → (E)/id

Where ∈ denotes the empty string of symbol

1. Complete FIRST and FOLLOW for each non terminal of the grammar G.

2. Construct a predictive parsing table for grammar G.


Q.2 Construct the tree for following expression and apply lebeling algorithm for optimal ordering x*(y+z)-z/(u-v) 

View ALL 

Saturday, 17 October 2015

Compiler Construction 2014 previous year questions - MinMarks

Previous year questions of Compiler Construction ( CC )2014 which appear in b.tech (computer engineering ) Rajasthan technical university (RTU)

1. Explain the syntax Directed Translation Schemes in details.

2. Let G be a grammar with non-terminal Symbol S and D, terminal symbol 'b', '0', and '1', start symbol S, and the following production rule

S -> bD

D -> 0D

D -> 1D

D -> 0

D -> 1

a. Is G regular ? Why (not) ?

b. Turn G systematically into a finite automation ?

View All questions with answers