Question
Please answer with explanations!
QUESTION 3 Which of the following is a parse tree for the grammar Sabs, Sab? 5 S 10 5 S .-9-9-9 10 10 10 10 a S. a S 5 a lal
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer: (c) will be correct.

Strings that can be generated from the given grammers S is that

S -> abS , S -> ab

will be { ab, abab, ababab, abababab, .......}.

Parse tree (c) as as shown in options will generate all of these strings. Therefore option (c) will be correct option.

Add a comment
Know the answer?
Add Answer to:
Please answer with explanations! QUESTION 3 Which of the following is a parse tree for the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT