Theory of Computation and Compilers MCQ - Syntax Analysis

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

S → Aa
A → BD
B → b|ε
D → d|ε
Follow (B) = {d, a}
Hence index value in descending order is 31.
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.

LR is power ful than LALR parsers and LALR are power ful than SLR parsers.
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 B
Rate difficulty Rate difficulty:
Choose a difficulty.

Number of st at e in SLR is always same as number of st ate in LALR parser.
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 → iE tSS1\a
  S' ⇒ eS|a
  E → b
This is left factor grammar
Thus we may expand S to ibtSS' on input i and wait untill ibtS has been seen to decide whether to expand S' → eS|∈
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 B
Rate difficulty Rate difficulty:
Choose a difficulty.

P → QR and P → ε is not possible for operator grammar.
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
Boost Your PreparationAttempt mock tests, previous year papers and topic-wise quizzes.Explore All Tests →