Theory of Computation and Compilers MCQ - Syntax Analysis

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

In two pass assembler,
Purpose: Generate object program.
1. Substitute the corresponding address for each symbol.
2. Generate instruction, which are opcode are subst ituted for machine instruction.
3. Data is generated.
4. Some pseudo operations are also executed.
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.

Relocation of code is the process done by the linker-loader when a program is copied from external storage into main memory.
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.

A grammar is said to be ambiguous if there exist more than one parse tree for a string.
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 *

Consider the context free grammar
E → E + E
E → (E * E)
E → id
Where E is the starting symbol, the set of terminals is {id, (, + ,), *} and the set of non terminal is {E}.
Correct AnswerOption A
Rate difficulty Rate difficulty:
Choose a difficulty.
Found this useful?
Follow:


Has more than one parse tree
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 *

Consider the context free grammar
E → E + E
E → (E * E)
E → id
Where E is the starting symbol, the set of terminals is {id, (, + ,), *} and the set of non terminal is {E}.
Correct AnswerOption A
Rate difficulty Rate difficulty:
Choose a difficulty.

Total 5 different parse trees are there.
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