Course File CD Unit II
Course File CD Unit II
S. No Details
1 Vision mission of the institute and Department, along with PEOs
2 Course Descriptor (Prepared by Course Coordinator only)
3 Previous results and self-target for present semester
4 Previous question papers along with answers
5 Academic Calendar
6 Student Roll List
7 Individual and Class Timetable
8 Session Planner
Class notes (Must Include the following in Unit Wise)
i. Lecture wise Notes
ii. Blooms Taxonomy (Contain 5 levels questions & answers)
iii. Question Bank (20 Short Answer Questions and 20 Descriptive Questions for
theoretical subjects, or 30 Descriptive/Analytical/Programming/Derivation
Questions for tutorial and programming-based courses for each unit.) along with
COs and blooms taxonomy levels
9 iv. 20 objective questions with answers include Gate questions (For Gate
subjects mandatory of gate questions)
v. 8-10 Unit wise solved Tutorial Problems
vi. 5 Assignment Questions chapter Wise along with Blooms Levels and CO's mapping.
vii. 5 topics for tech talks/ PPT /concept video etc. (selected for the course)
viii. Case Studies and Real-Life Examples
ix. Complex Engineering Problems Incorporating Sustainability Goals
x. SWAYAM/NPTEL/MOOC/Self Learning (provide 5 links for 5 different topics)
xi. Student seminar topics (if applicable)
xii. Two Micro Projects/certifications related to courses (If applicable)
Unit Wise Active Learning (activities)
Collaborative learning
Stump your partner
10 Muddiest point
Flipped classroom
Think pair and share
11 Unit Test question papers along with COs and Blooms Taxonomy Levels
MID-I and MID-II Exam schedules and Question Papers and Award list
12 (Slow learner identification and remedial action-
List of slow learners, Remedial class Timetable, Remedial Lecture Plan, Impact Analysis)
13 CO Attainment for MID-I With Micro Analysis
14 CO Attainment for MID-II With Micro Analysis
15 Final CO Attainment with Micro Analysis
16 Actions Taken Based on the Results of Evaluation of the COs, POs, and PSOs
17 Task table
18 Certificate
DEPARTMENT OF COMPUTER SCIENCE ENGINEERING
QUESTION BANK
UNIT-II
ALLIMALLI
Course Faculty Academic Year 2026-27
DURGABHAVANI
PART-A
Short Answer Questions
(1-mark Questions)
Course Bloom’s
[Link] QUESTION Outcome Taxonomy
1 What is a context-free grammar (CFG)? CO2 Remembering
2 Name two common notations for defining grammars in compiler design. CO2 Remembering
3 Explain why CFGs are used in syntax analysis instead of regular grammars. CO2 Understanding
4 Define terminals and non-terminals with examples. CO2 Remembering
5 What is left recursion in a grammar? CO2 Remembering
6 Why must left recursion be eliminated for top-down parsing? CO2 Understanding
7 What is left factoring in grammar design? CO2 Remembering
8 How does left factoring help predictive (LL(1)) parsing? CO2 Understanding
9 What is an LL(1) grammar? CO2 Remembering
10 Why are FIRST and FOLLOW sets important in LL parsing? CO2 Understanding
11 What is a parse tree? CO2 Remembering
12 Differentiate leftmost and rightmost derivations. CO2 Understanding
13 What is an ambiguous grammar? Provide an example. CO2 Remembering
14 Why are ambiguous grammars problematic for parsing? CO2 Understanding
15 What is operator precedence, and how is it enforced in parsing? CO2 Understanding
16 Describe shift-reduce parsing in one sentence. CO2 Remembering
17 Define LR parsing. CO2 Remembering
18 Name three types of LR parsers. CO2 Remembering
19 How does an SLR parser decide between shift and reduce? CO2 Understanding
20 What is a parser generator? Give one example. CO2 Remembering
PART-B
Descriptive Questions
(5-mark Questions)
[Link] Question Course Bloom’s
Outcome Taxonomy
1 Explain the structure of a compiler and describe the CO2 Understand
functions of each compilation phase with a neat diagram.
2 Discuss the importance of compiler construction in the CO2 Understand
implementation of programming languages.
3 Differentiate between compiler and interpreter with CO2 Analyze
suitable examples.
4 Explain the role of lexical analysis in compiler design and CO2 Understand
describe the process of token generation.
5 Describe input buffering techniques used in lexical CO2 Analyze
analyzers and explain their advantages.
6 Explain how tokens, patterns, and lexemes are used in CO2 Understand
lexical analysis with examples.
7 Discuss the working principle of Lex and explain how it CO2 Analyze
generates lexical analyzers automatically.
8 Construct regular expressions for identifiers, integers, and CO2 Create
floating-point numbers.
9 Explain the difference between deterministic and CO2 Analyze
nondeterministic finite automata with examples.
10 Describe the process of converting regular expressions CO2 Analyze
into finite automata.
11 Explain DFA minimization techniques and discuss their CO2 Evaluate
importance in lexical analyzer optimization.
12 Discuss the design issues involved in lexical-analyzer CO2 Analyze
generators.
13 Explain syntax analysis and discuss its role in compiler CO2 Understand
design.
14 Define context-free grammar and explain its significance CO2 Understand
in syntax analysis.
15 Construct a context-free grammar for arithmetic CO2 Create
expressions involving addition and multiplication.
16 Explain the concept of derivation and parse tree with CO2 Analyze
suitable examples.
17 Compare top-down parsing and bottom-up parsing CO2 Analyze
techniques.
18 Explain recursive descent parsing with a suitable example. CO2 Apply
19 Discuss predictive parsing and explain the construction of CO2 Analyze
predictive parsing tables.
20 Explain shift-reduce parsing with suitable examples. CO2 Understand
21 Describe the working principle of LR parsing and explain CO2 Analyze
its advantages.
22 Differentiate between SLR, CLR, and LALR parsers. CO2 Analyze
23 Explain parser generators and discuss the role of YACC in CO2 Understand
compiler construction.
24 Discuss ambiguous grammars and explain methods to CO2 Evaluate
remove ambiguity.
25 Explain error handling mechanisms used in lexical and CO2 Analyze
syntax analysis.
26 Construct a DFA that accepts binary strings ending with CO2 Create
101 and explain its transitions.
27 Develop Lex rules to recognize identifiers, keywords, and CO2 Create
relational operators.
28 Analyze the process of converting an NFA into DFA with CO2 Analyze
an example.
29 Explain operator precedence parsing and discuss its CO2 Analyze
advantages and limitations.
30 Evaluate the importance of compiler optimization CO2 Evaluate
techniques in modern programming systems.
Course Bloom’s
[Link] QUESTION Outcome Taxonomy
Explain the role of Context-Free Grammars (CFGs) in syntax analysis. Provide the
1 formal definition of a CFG. CO2 Understand
Compare top-down parsing and bottom-up parsing. Discuss their advantages and
3 limitations in compiler design. CO2 Analyze
Describe the operation of an SLR parser. Outline how ACTION and GOTO tables
4 are constructed and used in parsing. CO2 Apply
Explain how ambiguous grammars are handled using parser generators (e.g.,
5 Bison/Yacc). Use the dangling-else as an example. CO2 Evaluate
DEPARTMENT OF COMPUTER SCIENCE ENGINEERING
TECH TALKS/ PPT /CONCEPT VIDEO ETC
ALLIMALLI
Course Faculty Academic Year 2026-27
DURGABHAVANI
i. Topics should select topics from reputed journal databases such as IEEE, Scopus, Science
Direct, Springer, or Web of Science
ii. Student Presentations must include relevant references, Course Outcomes (COs), and the scope
of the topic.
iii. Student seminar topics also in the same format
DEPARTMENT OF COMPUTER SCIENCE ENGINEERING
CASE STUDIES AND REAL-LIFE EXAMPLES
Admitted Batch 2023-24 Program/Semester [Link]. VII Sem
Regulation MLRS-R22 Branch CSE
Answer:
ALLIMALLI
Course Faculty Academic Year 2026-27
DURGABHAVANI
Course Bloom’s
[Link] QUESTION Outcome Taxonomy
Explain the concepts of FIRST and FOLLOW sets with examples and their use in
1. parsing CO2 Apply
Compare SLR, LALR, and CLR parsers in terms of parse table size, language
2. coverage, and conflicts. CO2 Analyze
DEPARTMENT OF COMPUTER SCIENCE ENGINEERING
ACTIVE LEARNING
UNIT-II
Admitted Batch 2023-24 Program / Semester [Link]. VII Sem
Regulation MLRS-R22 Branch CSE
Course Name Compiler Design Course Code 2270517
ALLIMALLI
Course Faculty Academic Year 2026-27
DURGABHAVANI
Details/Links of
S. No Topic Swayam/NPTEL/MOOCs/Self CO PO PSOs
Learning
1 NPTEL: Compiler Design – Syntax CO
Syntax Analysis
Analysis (Prof. P. Das, IIT Kharagpur). 2
& Context-Free 1, 2 1
Covers CFGs and parsing basics
Grammars
([Link], [Link])
2 Top-Down vs CO
Coursera article: What Is Syntax
Bottom-Up 2
Analysis? – Explains top-down and 1, 3 1, 2
Parsing
bottom-up parsing
Techniques
3 Parser Theory: CO
LL(1), LR Scribd: COMPILER UNIT II – Covers 2
Parsing & role of parser, CFG, top-down, 2, 5 2
Predictive bottom-up, LL/LR parser overview
Parsing
4 In-depth Parsing CO
NPTEL slides (via Scribd): Unit 2 –
Methods & 2
Details recursive-descent, SLR, 1, 4 1
Table
canonical LR, LALR parsing
Construction
5 ANTLR and Wikipedia: ANTLR – Demonstrates CO
Practical Parser grammar specification (EBNF) and 2 4, 10 1, 2
Generators multi-language parser generation
DEPARTMENT OF COMPUTER SCIENCE ENGINEERING
COMPLEX ENGINEERING PROBLEMS INCORPORATING SUSTAINABILITY GOALS
Note:
1. For this only give from analyze and above level questions.
2. This include Project based learning, problem-based learning, mini projects, integrated design
projects, capstone projects, hackathon or any other activity-based learning towards solving
DEPARTMENT OF COMPUTER SCIENCE ENGINEERING
Blooms Taxonomy
Admitted Batch 2023-24 Program / Semester [Link]. VII Sem
Regulation MLRS-R22 Branch CSE
Course Name Compiler Design Course Code 2270517
Course Faculty ALLIMALLI DURGABHAVANI Academic Year 2026-27
[Link] Bloom’s Answer CO PO PSO Bloom’s
Question Level
1 Explain the role of Syntax analysis is the second phase of CO2 PO1, PSO1 Understand
syntax analysis in a compiler that checks whether the PO2
compiler design. sequence of tokens generated by
lexical analysis follows the
grammatical rules of the programming
language.
2 Compare top-down Top-down parsing starts from the start CO2 PO1, PSO1 Analyze
parsing and symbol and attempts to derive the PO2
bottom-up parsing input string, while bottom-up parsing
techniques. starts from the input string and
reduces it to the start symbol. Top-
down parsing is simpler but cannot
handle left recursion efficiently,
whereas bottom-up parsing is more
powerful and widely used in LR
parsers.
3 Construct a A CFG for arithmetic expressions is: CO2 PO1, PSO2 Apply
context-free `E → E + T T<br>T → T * F PO5
grammar (CFG)
for arithmetic
expressions
involving addition
and multiplication.
4 Analyze the LR parsing reads input from left to CO2 PO1, PSO2 Analyse
working principle right and constructs the rightmost PO5
of LR parsing and derivation in reverse. It uses parsing
explain why it is tables and stack operations for
more powerful efficient syntax analysis. LR parsers
than simple parsing can handle a larger class of grammars,
methods. detect syntax errors accurately, and
are suitable for automatic parser
generation tools like YACC.
5 Evaluate the use of Ambiguous grammars produce more CO2 PO2, PSO2 Evaluate
ambiguous than one parse tree for the same input. PO5
grammars in parser For example, the expression a+b*c
generators with can have multiple interpretations
suitable examples. without precedence rules. Parser
generators resolve ambiguity using
precedence and associativity
declarations., they may lead to parsing
conflicts if not handled properly.
DEPARTMENT OF COMPUTER SCIENCE ENGINEERING
20 objective questions with answers include Gate questions