Which of the following statements is TRUE about the regular expression 01∗0 ?
A
It represents a finite set of infinite strings.
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
It represents an infinite set of infinite strings.
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
It represents an infinite set of finite strings.
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
It represents a finite set of finite strings.
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is C It represents an infinite set of finite strings. Given regular expression is infinite set (because of *) of finite strings. A regular expression cannot generate any infinite string (since string is always finite in length by definition).