edited by
3,580 views

4 Answers

4 4 votes

Strings generated by grammar are $\{a, b, aba, aaa, bab, ababa, aaaaa,..\}$ all are odd length palindromes. Option b) & d) eliminated.

Option a) is not correct as $'aaba'$ is a string starts and ends with same symbol but not generated by given grammar.

Hence Option C) is correct 

1 1 vote
the string generated by this grammar are {a,b,aaa,aba,bab,bbb,aaaaa,ababb..........}

so the option C is correct.
0 0 votes

We can solve such kinds of question with the help of OPTION ELIMINATION METHOD.

 FOR OPTION A,B,D: It does not generate {aa}

Hence,OPTION C is correct.

(:

 

 

Answer:
Position:
Show:

Related questions

11 11 votes
5 answers 5 answers
10.9k
10.9k views
Satbir asked Jan 13, 2020
10,948 views
Minimum number of states required in DFA accepting binary strings not ending in $\text{“101”}$ is$3$$4$$5$$6$
3 3 votes
2 2 answers
4.7k
4.7k views
Satbir asked Jan 13, 2020
4,743 views
Which of the following classes of languages can validate an $\text{IPv4}$ address in dotted decimal format? It is to be ensured that the decimal values lie between $0$ an...
7 7 votes
3 3 answers
7.1k
7.1k views
Satbir asked Jan 13, 2020
7,139 views
The following circuit compares two $2$-bit binary numbers, $X$ and $Y$ represented by $X_1X_0$ and $Y_1Y_0$ respectively. ($X_0$ and $Y_0$ represent Least Significant Bit...
4 4 votes
2 2 answers
4.2k
4.2k views
Satbir asked Jan 13, 2020
4,220 views
For the distributions given below:Which of the following is correct for the above distributions?Standard deviation of $A$ is significantly lower than standard deviation o...