Theory of Computation and Compilers MCQ - Syntax Analysis

Correct AnswerOption C
Rate difficulty Rate difficulty:
Choose a difficulty.
Found this useful?
Follow:

In shift-reduce parser, the stack contains only a set of variable prefix.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Correct AnswerOption C
Rate difficulty Rate difficulty:
Choose a difficulty.

SLR and CLR are easy to implement. CLR is more power full to any of the parsec.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Correct AnswerOption D
Rate difficulty Rate difficulty:
Choose a difficulty.

The given grammar is ambiguous so neither LL(1) nor LR(1).
First Leftmost Derivation
S → F
F → c
Second Leftmost Derivation
S → H
H → c
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Correct AnswerOption A
Rate difficulty Rate difficulty:
Choose a difficulty.

LR parsers in term of power CLR > LALR > SLR > LR(0)
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Correct AnswerOption A
Rate difficulty Rate difficulty:
Choose a difficulty.
Share this question
Share:

S → XXW{Print + 1}
S → Y {Print + 2}
W → SZ {Print + 3}
Translation of XXXXYZZ
S → XXW   1
→ XXSZ   3
→ XXXXWZ   1
→ XXXXSZZ   3
→ XXXXYZZ   2
Syntax directed translation scheme described by 23131
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Why Practice with Avatto?
High Quality MCQsExam-focused questions with accurate answers
Detailed ExplanationsStep-by-step explanations to enhance learning
Latest Exam PatternBased on updated syllabus and pattern
Performance AnalyticsTrack performance and improve weak areas
100% Free PracticePractice unlimited questions for free