FIRST SESSIONAL CD PAPER SET 1 FOR Even SEM 2019-20
FIRST SESSIONAL CD PAPER SET 1 FOR Even SEM 2019-20
FIRST SESSIONAL CD PAPER SET 1 FOR Even SEM 2019-20
NOIDA
SESSION 2019-20(EVEN)
FIRST SESSIONAL TEST
B.Tech Semester--VI
Branch – CSE/IT Section –ALL
SECTION ‘A’
SECTION ‘C’
b) Consider the following grammar. Where S is start symbol of the grammar. (CO2)
S aAC| bB , A Abc | Abd | e , B f | g , C h | i
Construct Predictive parsing table for above grammar and find out whether the
grammar is LL(1) or not
**** ****
NOIDA INSTITUTE OF ENGINEERING & TECHNOLOGY, GR. NOIDA
SESSION 2019-20(EVEN)
FIRST SESSIONAL TEST
B.Tech Semester--VI
Branch – CSE/IT Section –ALL
SECTION ‘A’
1. a) How a program executes in the language processing system? Draw only diagram. (CO1)
b) Design a DFA for strings containing a’s & b’s which accepts the strings having abb as
a substring (CO1)
2. a) Remove left recursion from the grammar. (CO2)
A ABC / aBb / id / c , B + / * / =
b) Explain the concept of bootstrapping. (CO2)
SECTION ‘B’
3. a) Explain the action taken by every phase of the compiler with a suitable example. Also
discuss the different types of grouping of phases. (CO1)
b) Construct top down & bottom up parse tree for the string (id+ (id*id)) by using the
following grammar where E is start symbol:-- (CO1)
E E+E / E*E / (E) / id
4. a) Write the procedure for constructing the LL(1) parsing table. (CO2)
*
b) Convert regular expression (a/b) b*ab in a DFA without creating intermediate NFA
(CO1)
SECTION ‘C’
**** ****