Mid Term CSC 437 Sec D
Mid Term CSC 437 Sec D
Alimullah Miyan
Instructions:
I. Answer all the following questions. II. Marks allocated are indicated in the right margin.
CO 1 2 3 4 PO 1 2
2. Lex is a tool that generates Lexical Analyzers (converts the stream of CO2 C2 20
characters into tokens). Describe the working process of a LEX tool with a PO1
suitable diagram.
3. Error recovery strategies are used by the parser to recover from errors once it CO2 C2 25
is detected. Now, properly explain about Error Recovery Strategies like PO1
Panic-Mode Recovery, Phrase-Level Recovery and Error Productions with
examples.
4. Show a Leftmost Derivation and a Parse Tree for the following string ‘acb’ CO2 C3 25
by using the given Context Free Grammar. Here, S is the start symbol. PO1
S → ASB | c
A → aA | ε
B → bB | ε
Page 1
Founded 1991 by Md. Alimullah Miyan
Program Outcomes:
PO1: Engineering Knowledge: An ability to apply knowledge of computing, mathematics, science and engineering fundamentals to the
solution of complex engineering problems.
PO2: Problem Analysis: An ability to identify, formulate and analyze complex engineering problems. Also capability to select and apply the
engineering knowledge to computing problems that requires the application of principles and applied procedures or methodologies.
Page 2