👁️ 93 views
University of Barishal Logo

University of Barishal

Department of Computer Science and Engineering

1st Mid Exam

Course Title: Compiler Design and Construction (CSE-4103)

Semester: 7th | Session: 19-20

Time: 35 minutes | Marks: 25.00

Course Teacher: Dr. Md Manjur Ahmed

Exam Date: February 23, 2025

Answer ALL Questions

1.


1)

Design Transition Diagrams of regular definitions for the following relational operators:

relop → < | <= | <> | > | >= | =
 

[Two (2) Marks for each operator]

Please SUBSCRIBE to view full question

Topics: N/A Solution is Coming!
12 Marks
2)

Predictive parsing is a special form of recursive descent parsing where we use one LOOKAHEAD token to unambiguously determine the parse operations. When a nonterminal has multiple productions, each production is implemented in a branch of a selection statement based on input look-ahead information.

Execute the example (Fig. 1) using Predictive Parser.
 

Input: array [ num  dotdot  num] of integer

            ↑

     lookahead

 

[1 mark for each execution step]
 

Please SUBSCRIBE to view full question

Topics: N/A Solution is Coming!
8 Marks
3)

Analyse "Panic Mode" in error recovery for Syntex Analyzer.

 

[1 mark for each points]

Please SUBSCRIBE to view full question

Topics: N/A Solution is Coming!
5 Marks

Contributors of this Question:

Role Name Date
Prepared By (Teacher): Dr. Md Manjur Ahmed Feb. 23, 2025
Uploaded By: Subrina Jahan Meem Feb. 23, 2025, 8:14 p.m.
Converted By (Img/PDF to Text): Baishakhi Bir Feb. 7, 2026, 8:58 p.m.
Reviewed By: Obaydul Hasan Nayeem Feb. 8, 2026, 10:14 a.m.