CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Language L1 is defined by the grammar:
S1 aS1b | ε
Language L2 is defined by the grammar:
S2 abS2 | ε
Consider the following is TRUE ?
P: L1 is regular
Q: L2 is regular
Which one of the following is TRUE?

A
Both P and Q are false
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
P is true and Q is false
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
P is false and Q is true
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
Both P and Q are true
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Join BYJU'S Learning Program
CrossIcon