Learn and practice Aptitude questions and answers with explanation for interview, competitive exam (Pariksha Corner )

Friday, January 24, 2020

most closely describes the regular expression 01 * 0

Which statement most closely describes the regular expression 01 * 0 ?
AIt represents a finite set of finite strings
BIt represents an infinite set of finite strings
CIt represents a finite set of infinite strings
DIt represents an infinite set of infinite strings.

Answer:It represents an infinite set of finite strings

Explanation:

The Regular Expression 01*0 means
The set of ==> {00,010,0110,01110,011110,0111110,01......0, and so on.}
so the length of the string like 00 and 011110 are finite and the set is infinite due to 1*
so the ans is B.

Akilesh Kharvi
answered Dec 8 '2016 at 21:49

All Comments

Post your answers here:

Post

Post your comments here:

Post

Categories