You are on page 1of 5

A.

Y: 2016-17
Department of Computer Science and Engineering
Roll No.
BAPATLA ENGINEERING COLLEGE, BAPATLA
(AUTONOMOUS)
First Assignment Examination Marks:
Class: III/IV B.Tech.(CSE) Sec - A,B,C 1stSem Max.marks:10m.
Subject: CD(14CS602) Time: 50mins.
Date: 29-12-16

1. Design lexical analyzer for the grammar? ( 6M )

Sif ( C ) S else S | A
AID=E
EE+T | T
TT*F | F
FID | NUM
CID RELOP ID

One Mark Questions 4X1=4M

a) What is lexeme?
b) What is boot strapping?
c) What is ambiguous grammar?
d) What is yy.ll.c?
A.Y: 2016-17
Department of Computer Science and Engineering
Roll No.
BAPATLA ENGINEERING COLLEGE, BAPATLA
(AUTONOMOUS)
First Assignment Examination Marks:
Class: III/IV B.Tech.(CSE) Sec - A,B,C 1stSem Max.marks:10m.
Subject: CD(14CS602) Time: 50mins.
Date: 29-12-16

2. Explain about lex compiler. ( 6M )

One Mark Questions 4X1=4M

a) What is token?
b) Define cross compiler?
c) What is the role of lexical analyzer?
d) Explain installID( ) ?
A.Y: 2016-17
Department of Computer Science and Engineering
Roll No.
BAPATLA ENGINEERING COLLEGE, BAPATLA
(AUTONOMOUS)
First Assignment Examination Marks:
Class: III/IV B.Tech.(CSE) Sec - A,B,C 1stSem Max.marks:10m.
Subject: CD(14CS602) Time: 50mins.
Date: 29-12-16

3. Explain input buffering. ( 6M )

One Mark Questions 4X1=4M

a) Define Compiler?
b) What is pattern?
c) Define preprocessor?
d) Explain getToken( ) ?
A.Y: 2016-17
Department of Computer Science and Engineering
Roll No.
BAPATLA ENGINEERING COLLEGE, BAPATLA
(AUTONOMOUS)
First Assignment Examination Marks:
Class: III/IV B.Tech.(CSE) Sec - A,B,C 1stSem Max.marks:10m.
Subject: CD(14CS602) Time: 50mins.
Date: 29-12-16

4. Explain phases of compiler with example. ( 6M )

One Mark Questions 4X1=4M

a) Define symbol table?


b) Differentiate compiler and interpreter?
c) What is parsing?
d) What is yylval?
A.Y: 2016-17
Department of Computer Science and Engineering
Roll No.
BAPATLA ENGINEERING COLLEGE, BAPATLA
(AUTONOMOUS)
First Assignment Examination Marks:
Class: III/IV B.Tech.(CSE) Sec - A,B,C 1stSem Max.marks:10m.
Subject: CD(14CS602) Time: 50mins.
Date: 29-12-16

5. Explain Regular Definitions and Extension of Regular Expressions? (6M)

One Mark Questions 4X1=4M

a) What is the role of syntax analyzer?


b) Define interpreter?
c) What is retract?
d) What is prefix of a string?

You might also like