Salman University of Sargodha M. Sc. I. T, 4"' Term Exam 2015. Subject: Information Technology Paper: Compiler Construction (IT: 696) Allowed: 2:30 Hour ustadni.com
Discussion
Ask a question about this paper, or help someone else with theirs. Answers are emailed to whoever asked.
No questions yet — be the first to ask.
More Compiler Construction papers
See all
Compiler Construction BSCS 2018 UOS
Uploaded 3 years ago
Download ↓
University of Sargodha BS 6* Term Examination 2015 Subject: Computer Science Paper: Compiler Construction (CS-443) Time Allowed: 2:30 Hours 12BSCS SIS Maximum Marks: 80
Uploaded 3 years ago
Download ↓
Q.No.6 Q.No.7 Write a hote on errot recovery techniques. [6+6] a) Remove left recursion from following grammar E→E + T
Uploaded 3 years ago
Download ↓
BS 7" Term Examination 2017 Subject: Computer Science Paper: Complier Construction (CS: 4141) Time Allowed: 2:30 Hours Maximum Marks: 80 Note: Objective part is compulsory. Attempt any four questions from subjective part.
Uploaded 3 years ago
Download ↓
Paper text
Salman
University of Sargodha
M. Sc. I. T, 4"' Term Exam 2015.
Subject: Information Technology Paper: Compiler Construction (IT: 696)
Allowed: 2:30 Hour
ustadni.com
Maximum Marks: 80|
Objective Part Compulsory
Q No 1: Write short answer of the following questions.
• In what situation we use cross compiler?
2y What is the benefit of syntax tree in analysis synthesis model of compilation?
'Mention some important properties of the intermediate code.
*r Write the name of phases of compiler in sequence.
. Define semantic analysis.
6. Differentiate between top down parsing and predictive parsing.
Differentiate between NFA and DFA with the help of one example.
8. What is the difference between compiler and interpreter?
.Differentiate between lexeme and pattern with the help of example.
10. What is the function of static checkers?
U. What is dead code elimination?
12. Define left recursion.
I3. Differentiate between lexical analysis and parsing.
14. Define transition diagram.
15. Define syntax directed translation.
16. Why we use symbol table in compiler?
2504
Subjective Part
Note: Attempt any three out of five Questions (Al questions carry equal arks)
Q No 2: Explain the structure of a compiler with the help of diagram.
Q Nos: Explain the parse tree with the help of examples.
Q No4: Explain the lexical analysis phase oficompiler.
Q No 5 Explain the Three Address Code.
Q No 6 Optimize the following code with title of the technique you use
x =1
y=a *b+3
7= a *b+ x +z+2.
x = 3
ustadni.com
visit website: ustadni.com