Important Questions

Important Questions

S1

Asked in 2081.1Short Question5 Marks
1.
What are the roles of macros and preprocessor? Discuss about one pass and multi pass compiler. [5]
Asked in 2081Short Question5 Marks
2.
Explain different phases of compiler in brief. [5]
Asked in 2080Short Question5 Marks
3.
What are the advantages of intermediate code? What types of information are provided by symbol table? [5]
Asked in 2080Long Question10 Marks
4.
Differentiate between one-pass and multi-pass compiler. Construct the LL(1) parsing table for the following grammar.
S→ABCDS \rightarrow ABCD
A→a∣εA \rightarrow a | \varepsilon
B→bB \rightarrow b
C→0∣εC \rightarrow 0 | \varepsilon
D→d∣εD \rightarrow d | \varepsilon
[10]
Asked in 2078Short Question5 Marks
5.
List out different types of run time storage management techniques. Explain any one of them. [5]
Asked in 2078Short Question5 Marks
6.
What are the typical entries made in symbol table? Explain. [5]
Asked in 2078Short Question5 Marks
7.
Define compiler and differentiate it with an interpreter. [5]
Asked in 2076Long Question6 Marks
8.
Discuss the importance of error handler in compiler. How is it manipulated in the different phases of compilation? [6]
Asked in 2076Long Question6 Marks
9.
Explain briefly about different phases involved in compiler, with a block diagram [6]
Asked in 2075Long Question6 Marks
10.
What is activation record? Discuss the different activities performed by caller and callee during procedure call and return. [6]
Asked in 2075Long Question6 Marks
11.
Difference between compiler and interpreter. "Symbol table is necessary component of compiler". Justify this statement with examples. [6]