Search Header Logo
Parsing in Compiler Design

Parsing in Compiler Design

Assessment

Flashcard

Computers

University

Practice Problem

Hard

Created by

Rashmika Yadav

FREE Resource

Student preview

quiz-placeholder

19 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is parsing in Compiler Design?

Back

Parsing is a process where a parser checks whether the input string follows the grammar rules and builds a parse tree.

2.

FLASHCARD QUESTION

Front

What is Top-Down Parsing?

Back

Top-Down Parsing starts from the start symbol and tries to derive the input string, building the parse tree from root to leaves.

3.

FLASHCARD QUESTION

Front

What is an example of Top-Down Parsing?

Back

Recursive Descent Parser.

4.

FLASHCARD QUESTION

Front

What is Bottom-Up Parsing?

Back

Bottom-Up Parsing starts from the input string and reduces it to the start symbol, building the parse tree from leaves to root.

5.

FLASHCARD QUESTION

Front

What is an example of Bottom-Up Parsing?

Back

Shift-Reduce Parser.

6.

FLASHCARD QUESTION

Front

What is the working approach of Top-Down Parsing?

Back

Top-Down Parsing uses Leftmost Derivation and expands non-terminals step by step.

7.

FLASHCARD QUESTION

Front

What is the working approach of Bottom-Up Parsing?

Back

Bottom-Up Parsing uses Rightmost Derivation in reverse and reduces strings step by step.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?