Theory of Computation and Compilers MCQ - Syntax Analysis

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

Always the case SLR and LALR have same number of states.
While LR have more states than these two.
Because for any Bottom-up paring number of ‘CORES’ is always same while for LR() only other thing is lookahead is different.
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.

Go to Graph is:-

So all are in different set.
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.
Found this useful?
Follow:
 FirstFollow
S id$
Rid, E$
Fidid, $
So table Entries are as follows
M [S, id] = {S → FR}
M[R, $] = {R → ε}
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 grammar is
S → AC/CB
C → aCb/null
A → aA/a
B → Bb/b
it generate set of all strings generated by above 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 *

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

According to definition, handle is a production rule A → β and a position in the sentential form where string β may be found and replaced to produce the previous right sentential form in a rightmost derivation of sentential form.
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 →