Download PTU B.Tech 2021 Jan CSE 7th Sem 71905 Compiler Design Question Paper

Download PTU (Punjab Technical University) B.Tech (Bachelor of Technology) / BE (Bachelor of Engineering) 2021 January CSE 7th Sem 71905 Compiler Design Previous Question Paper

Roll No.
Total No. of Pages : 02
Total No. of Questions : 18
B.Tech. (CSE) (2012 to 2017 E-III) (Sem.?7)
B.Tech. (IT)
COMPILER DESIGN
Subject Code : BTCS-913
M.Code : 71905
Time : 3 Hrs. Max. Marks : 60
INST RUCT ION TO CANDIDAT ES :
1 .
SECT ION-A is COMPULSORY cons is ting of TEN questions carrying TWO marks
each.
2 .
SECT ION-B c ontains F IVE questions c arrying FIVE marks eac h and s tud ents
have to atte mpt any FOUR q ues tions.
3 .
SECT ION-C contains THREE questions carrying T EN marks e ach and s tudents
have to atte mpt any T WO questio ns.
SECTION-A
Answer briefly :
1)
Write a note on role of a parser.
2)
What is Compiler?
3)
What are the applications of compiler technology?
4)
What do you mean by code generation?
5)
Difference between Compilation and Interpretation.
6)
What do you mean by lexical analyzer?
7)
Write a note on Handle pruning.
8)
Write brief note on symbol tables.
9)
What are the specifications and recognition of tokens?
10) What is back patching?
1 | M - 7 1 9 0 5
( S 2 ) - 7 1 1

SECTION-B
11) What is the role of lexical analyser in compilation process? What are patterns, lexemes and
tokens?
12) What do you mean by compiler designing? Explain the structure of compiler.
13) List the various types of intermediate code representation. Explain any three types in
details.
14) What is the cross compiler? What is difference between compiler and interpreter?
15) Write short Note on :
a) YACC
b) Parse tree
SECTION-C
16) Explain the working and algorithm of LR Parser.
17) What is symbol table? Explain in detail its contents and data structure.
18) What is Syntax Directed Definitions? Explain how infix expression can be converted to
postfix expression using SDD's?
NOTE : Disclosure of Identity by writing Mobile No. or Making of passing request on any
page of Answer Sheet will lead to UMC against the Student.
2 | M - 7 1 9 0 5
( S 2 ) - 7 1 1

This post was last modified on 26 June 2021