Home /University Of Sargodha (UOS) /Compiler Construction

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

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 — page 1

Discussion

Ask a question about this paper, or help someone else with theirs. Answers are emailed to whoever asked.

Your email is only used to send you replies and occasional Ustadni updates. It is never shown publicly.

Log in to post under your name

No questions yet — be the first to ask.

More Compiler Construction papers

See all

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