CSE - CS604A - COMPILER DESIGN - R18 - Booklet
CSE - CS604A - COMPILER DESIGN - R18 - Booklet
10. (a) Explain with suitable examples. Convert the following 10 2 COMPILER DESIGN
NFA to the equivalent DFA. (Diagram is given below)
CS604A
TIME ALLOTTED: 3 HOURS FULL MARKS: 70
The figures in the margin indicate full marks.
Candidates are required to give their answers in their own words as far as practicable
GROUP – A
(Multiple Choice Type Questions)
1. Answer any ten from the following, choosing the correct alternative of each question: 10×1=10
Marks CO No.
(i) Role of preprocessor is to _____________. 1 4
(a) Produce output data
(b) Produce output to compilers
(c) Produce input to compilers
(d) None of these
(b) What is an operator precedence parser? 2 2 (ii) A finite automata recognizes __________. 1 2
(c) List the advantages and disadvantages of operator 3 3 (a) Any Language
precedence parsing. (b) A Context Sensitive Language
11. (a) Differentiate between: 5 4 (c) A Regular Language
Static Type Checking vs Dynamic Type Checking (d) A Context Free Language
(b) Write Short Notes on any two 2×5=10 (iii) A compiler is a translator that converts source program to 1 1
(i) Inherited attribute and synthesized attribute for 5 4 a ________________.
Syntax Directed Translation (a) HLL
(ii) Parse Tree 5 2 (b) Exe Code
(iii) Lexeme, Tokens and Patterns 5 3 (c) Assembly Code
(iv) LEX and YACC 5 3 (d) Machine Code
(iv) Identify the error which will not be detected by the 1 1
compiler?
(a) Lexical error
(b) Syntactic error
(c) Semantic error
(d) Logical error
(v) Which data structure is mainly used during shift-reduce 1 3
parsing?
(a) Array
(b) Stack
(c) Queue
(d) Pointer
(vi) The most powerful parser is _____________. 1 3
(a) SLR
(b) LALR
(c) Canonical LR
(d) Operator-precedence
Page 4 of 4 Page 1 of 4
JISCE / UG / CSE / R18 / EVEN / SEM-6 / CS604A / 2022-23 JISCE / UG / CSE / R18 / EVEN / SEM-6 / CS604A / 2022-23
Page 2 of 4 Page 3 of 4