...
GATE 2000
March 18, 2025
GATE 2000
March 18, 2025
GATE 2000
March 18, 2025
GATE 2000
March 18, 2025

GATE 2000

Question 5

Let L denotes the language generated by the grammar S → 0S0/00.
Which of the following is true?

A
L = 0+
B
L is regular but not 0+
C
L is context free but not regular
D
L is not context free
Question 5 Explanation: 
The given grammar results that a string which contains even length excluding empty string i.e {00,000000,00000000,…….}. So which is regular but not 0+.
Correct Answer: B
Question 5 Explanation: 
The given grammar results that a string which contains even length excluding empty string i.e {00,000000,00000000,…….}. So which is regular but not 0+.

Leave a Reply

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