HamroCSIT Logo
HAMRO CSIT
  • Course New
  • Entrance
    • Entrance Preparation
    • MCQ Questions
    • Colleges
    • Entrance Class
    • Entrance Books
    • Free Entrance Video Course
  • Semester
    • First Semester
    • Second Semester
    • Third Semester
    • Fourth Semester
    • Fifth Semester
    • Sixth Semester
    • Seventh Semester
    • Eight Semester
  • Questions
  • Subscription Automated
  • Notices
  • Articles
  • More
    • Ask Question
    • College Ambassadors
    • Financial Support Program
    • Contribute
    • Contact Us
Login Register
Hamro CSIT User Account
  • Sign In
  • Create Account


Shape | Hamro CSIT Shape | Hamro CSIT Shape | Hamro CSIT Shape | Hamro CSIT
Subject

Compiler Design and Construction

This course is designed to develop acquaintance with fundamental concepts of compiler design. The course starts with the basic concepts and also includes different phases of compilers like lexical analysis, syntax analysis, syntax-directed translation, type checking etc. in detail.

Subject Image | Hamro CSIT
  • Chapters
  • Syllabus
  • Question Banks
  • Questions
  • Text Book
  • Practical
  • Viva

Exam Year

  • CDC Model Set II
  • CDC Model Set I
  • CDC Question Bank 2081(new)
  • CDC Question Bank 2081
  • CDC Question Bank 2075
  • CDC Question Bank 2080
  • CDC Question Bank 2076
  • CDC Question Bank 2078

Tribhuvan University

Institute of Science and Technology

2081(new)

Bachelor Level / sixth-semester / Science

Computer Science and Information Technology( CSC365 )

Compiler Design and Construction

Full Marks: 60 + 20 + 20

Pass Marks: 24 + 8 + 8

Time: 3 Hours

Candidates are required to give their answers in their own words as far as practicable.

The figures in the margin indicate full marks.

SECTION A

Attempt any TWO question.

1

Discuss about Directed Acyclic Graph with an example. Represent the expression A = (B + C) – (D – E) using 3AC, Quadruple and Triple.

2

Create the LR(1) parsing table for following grammar.
S → AA
A → 0A
A → ε

3

Explain the optimization techniques for code optimization. Convert the following program to basic block and control flow.
M = A + B
N = C + D
IF (M > N)
X = M – N;
ELSE
E = M + N + X

SECTION B

Attempt any EIGHT question.

4

Compute the FIRST and FOLLOW of all the non-terminals in following grammar.
S → AB
A → 0A’ | 1A’ | ε
A’ → SSA’ | ε
B → AS | 1

5

What are the operations performed in symbol table? Discuss about activation tree.

6

What are the roles of macros and preprocessor? Discuss about one pass and multi pass compiler.

7

Define explicit and implicit type conversion. Why do we need to check type of the system? Justify with an example.

8

Differentiate between synthesized and inherited attributes with example.

9

Construct the LL(1) parsing table for the following grammar.
S → AS1 | C
A → 0
C → 2C | ε

10

What are the advantages of intermediate code? How do you convert procedure call to 3AC?

11

What is a symbol table? Discuss the general structure of an LR parser.

12

Generate the LR(0) item sets for the following grammar.
A → BB
B → bB | a

Compiler Design and Construction Question Bank Solution 2081(new)
Solution Video
Solution
Share

Share this link via

Or copy link

logoHAMROCSIT

Hamro CSIT is a comprehensive web and mobile platform that provides B.Sc. CSIT students with resources like notes, syllabi, question banks, solved past papers, practical files, and free entrance preparation materials — all in one place.

  • [email protected]
Semester
  • First Semester
  • Second Semester
  • Third Semester
  • Fourth Semester
  • Fifth Semester
  • Sixth Semester
  • Seventh Semester
  • Eighth Semester
Links
  • About Us
  • FAQs
  • Sitemap
  • Privacy Policy
  • Terms and Conditions
  • College Ambassadors
  • Financial Support Program
Hits Counter
20230232
Google Play App Store
Follow Us

Copyright 2026 | HAMROCSIT | All Right Reserved

Official Payment Partner Esewa Logo
HAMROCSIT.COM

Copyright 2024 | HAMROCSIT.COM | All Right Reserved - Nymna Technology