Aptitude
December 31, 2023
Question 8674 – GATE 2014 [Set-3]
December 31, 2023
Aptitude
December 31, 2023
Question 8674 – GATE 2014 [Set-3]
December 31, 2023

Question 170 – ISRO CS 2008

Consider the grammar
S → ABCc ∣ bc
BA → AB
Bb → bb
Ab → ab
Aa → aa
Which of the following sentences can be derived by this grammar?

Correct Answer: A

Question 7 Explanation: 
C is useless in S→ABCc so remove it.
S→ABc
Now see each of remaining production
Bb→bb ( i.e. B→b)
Ab→ab (i.e.A→a)
Aa→aa (i.e. A→a)
So
S→ABc→abc
A
abc
B
aab
C
abcc
D
abbc

Leave a Reply

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