Unit 1 - Assignment - Updated - AKTU
Unit 1 - Assignment - Updated - AKTU
Assignment -1
Release Date: 25th Sep 2023
Submission Date: 3rd October 2023
Note: Assignment should be handwritten on a notebook.
Section A
QN CO KL Questions Marks
1 CO1 K2 How will you group the phases of compiler? (AKTU 2022-23) 2
2 CO1 K2 Define the terms language, translator and compiler. (AKTU 2021-22) 2
3 CO1 K2 Discuss about cross compiler. (AKTU 2020-21) 2
4 CO1 K2 What is an ambiguous grammar. Give example. (AKTU 2021-22) 2
5 CO1 K2 Design a DFA for the following R.E. (AKTU 2020-21) 2
(x|y)*xyy
6 CO1 K2 Explain the term token, lexeme and pattern. 2
7 CO1 K2 Discuss the capabilities of CFG. (AKTU 2022-23) 2
8 CO1 K2 Give a R.E. for specifying identifiers. 2
9 CO1 K2 In compiler, recall at what phase parse tree of a language is recognized. (GATE 2011) 2
10 CO1 K2 Define Regular expression with an example. 2
11 CO1 K2 Mention the role of semantic analysis. 2
12 CO1 K2 At which phase of compiler type checking is done. Explain that phase.(GATE 2016) 2
Section B
1 CO1 K2 Check whether given grammar is ambiguous or not. If ambiguous then convert it into 5
unambiguous grammar: (AKTU 2020-21)
E→E+E|E*E| id
2 CO1 K2 Write a CFG to represent the language L={an+mbn |m,n≥1} (AKTU 2020-21) 5