GATE | GATE CS Mock 2018 | Set 2 | Question 48
What is the language generated by this regular expression ?
(b + ε ) (a + ab)*
(A) Always starts with b
(B) Can have any number of ba and ab
(C) Can not have 2 b’s together.
(D) Starts and end with same symbol
Answer: (C)
Explanation:
R.E. = b(a + ab)* + (a + ba)*
= (b + ε ) (a + ab)*
Or
R.E. = (a + ba)* + (a + ba)*b
= (a + ba)* (ε + b)
Both means ‘Can not have 2 b’s together’.
Option (C) is Correct.
Quiz of this Question
Recommended Posts:
- GATE | GATE CS 1999 | Question 36
- GATE | GATE CS Mock 2018 | Question 39
- Top 5 Topics for Each Section of GATE CS Syllabus
- How to prepare in Last 10 days to score high in GATE?
- Aptitude | GATE IT 2006 | Question 7
- Aptitude | GATE IT 2006 | Question 8
- GATE | GATE CS 2013 | Question 1
- GATE | GATE CS 2013 | Question 3
- GATE | GATE CS 2013 | Question 4
- GATE | GATE CS 2013 | Question 65
- GATE | GATE CS 2013 | Question 6
- GATE | GATE CS 2013 | Question 7
- GATE | GATE CS 2013 | Question 8
- GATE | GATE CS 2013 | Question 65
- GATE | GATE CS 2013 | Question 65



