BSc CSIT (TU) Science Compiler Design and Construction (BSc CSIT, CSC365) Question Paper 2078
This is the official BSc CSIT (TU) (Science stream) Compiler Design and Construction (BSc CSIT, CSC365) question paper for 2078, as set in the regular annual examination. It carries 60 full marks and a time allowance of 180 minutes, across 12 questions. On Kekkei you can attempt this Compiler Design and Construction (BSc CSIT, CSC365) past paper online with a timer, get instant AI feedback and step-by-step solutions, and track the topics where you lose marks — completely free. Whether you are revising for your BSc CSIT (TU) Compiler Design and Construction (BSc CSIT, CSC365) exam or solving previous years' question papers, this 2078 paper is a great way to practise under real exam conditions.
Section A: Long Answer Questions
Attempt any TWO questions.
Explain semantic analysis and type checking. Discuss type expressions, type systems and type conversion.
Explain the different phases of a compiler with a suitable diagram, showing the output of each phase for the statement position = initial + rate * 60.
Construct the LR(1) parsing table for the grammar S -> CC, C -> cC | d and parse the input string cdd.
Section B: Short Answer Questions
Attempt any EIGHT questions.
What is three-address code? Write the three-address code for x = (a + b) * (c + d).
Explain peephole optimization with an example.
Differentiate between synthesized and inherited attributes.
What is bootstrapping in compiler construction?
Construct an NFA for the regular expression (a|b)*abb.
What is operator precedence parsing?
Explain activation records and their role in run-time storage management.
What is a basic block and a flow graph?
Differentiate between top-down and bottom-up parsing.