Professional Documents
Culture Documents
Compiler Design (BTCS601) - MST QP
Compiler Design (BTCS601) - MST QP
Compiler Design[BTCS601]_MST QP
LEX
YACC
TYPE CHECKING
ERROR CHECKING
Lexical Analysis
Syntax Analysis
Code Optimization
https://forms.office.com/Pages/ResponsePage.aspx?id=a_k_eBP-a0C0jUXcGFPLrR1yTsdtVkNKjFuRX3DQbUpURVhWT0ZaSUxFVk9KM1k2Mj… 1/5
09/10/2021, 12:18 Compiler Design[BTCS601]_MST QP
Perform LC processing
Obtain machine code corresponding to the mnemonic from the mnemonics table
Identifiers
Constants
Keywords
S → $Ca# | a
Ca → aaC | D
$D → $C
C# → D#
aD → Da *
(1 Point)
https://forms.office.com/Pages/ResponsePage.aspx?id=a_k_eBP-a0C0jUXcGFPLrR1yTsdtVkNKjFuRX3DQbUpURVhWT0ZaSUxFVk9KM1k2Mj… 2/5
09/10/2021, 12:18 Compiler Design[BTCS601]_MST QP
Regular Grammar
Unrestricted Grammar
Recursive
Non Recursive
Constructive
Both I and II
Z→ XYZ | d
X→ Y | a
Y →cX | ε
S → aSa
S → aa
aaaaaaaaaa *
(1 Point)
Yes
https://forms.office.com/Pages/ResponsePage.aspx?id=a_k_eBP-a0C0jUXcGFPLrR1yTsdtVkNKjFuRX3DQbUpURVhWT0ZaSUxFVk9KM1k2Mj… 3/5
09/10/2021, 12:18 Compiler Design[BTCS601]_MST QP
No
(b) Compute the FIRST and FOLLOW sets for each nonterminal of the grammar
given below: (3)
S→ ABa | bCA
A→ cBCD | a | d | ε
B →CdA| ba
C →eC| ε
D →bSf | a
(Non-anonymous question )
(5 Points)
E→ E+T | T
T→ TF | F
F→F* | a | b
Construct LL(1) top down parsing table for the given grammar and check
following string parse using parser or not.
This content is created by the owner of the form. The data you submit will be sent to the form owner. Microsoft is
not responsible for the privacy or security practices of its customers, including those of this form owner. Never give
out your password.
https://forms.office.com/Pages/ResponsePage.aspx?id=a_k_eBP-a0C0jUXcGFPLrR1yTsdtVkNKjFuRX3DQbUpURVhWT0ZaSUxFVk9KM1k2Mj… 5/5