...
Programming-for-Output-Problems
October 6, 2023
Digital-Logic-Design
October 6, 2023
Programming-for-Output-Problems
October 6, 2023
Digital-Logic-Design
October 6, 2023

Compiler-Design

Question 18

Consider the following grammar.

     S → aSB|d
     B → b 

The number of reduction steps taken by a bottom-up parser while accepting the string aaadbbb is _______.

A
7
Question 18 Explanation: 

7 reductions total.
Correct Answer: A
Question 18 Explanation: 

7 reductions total.

Leave a Reply

Your email address will not be published. Required fields are marked *