MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

COMPILER DESIGN

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which of the following are true about top-down parsing?
A
Builds parse tree from root to leaves
B
Two symbols can be scanned at a time
C
Input is scanned from left to right
D
One symbol can be scanned at a time
Explanation: 

Detailed explanation-1: -Detailed Solution. The correct answer is option 4. Concept: Option 1: Top-down parsers are equipped to handle left recursive grammar.

Detailed explanation-2: -Which one of the following is a top-down parser? Explanation: Recursive Descent also known as top down parsing also known to be LL(1).

Detailed explanation-3: -Detailed Solution. Concept: A top down parser starts with the start symbol and generate the output. It tries to parse a string using the left most derivation.

Detailed explanation-4: -Top-down parsing in computer science is a parsing strategy where one first looks at the highest level of the parse tree and works down the parse tree by using the rewriting rules of a formal grammar. LL parsers are a type of parser that uses a top-down parsing strategy.

There is 1 question to complete.