edited by
9,950 views
42 votes
42 votes

Which of the following statements is TRUE about the regular expression $01^*0$?

  1. It represents a finite set of finite strings.
  2. It represents an infinite set of finite strings.
  3. It represents a finite set of infinite strings.
  4. It represents an infinite set of infinite strings.
edited by

3 Answers

Best answer
66 votes
66 votes

Correct Option: B

Infinite set (because of $^*$) of finite strings. A string is defined as a FINITE sequence of characters and hence can never be infinite. 

edited by
1 votes
1 votes

The given expression01*0 is regular. So this is a finite string. So options C and D are false and * is placed. So this is infinite set.
So, given regular expression represents an infinite set of finite strings.

 

Optins B is correct

1 votes
1 votes
string can be of infinite length but if it is recognised by finite automaton then this is finite so i think infinite number of strings are possible but the string length will be finite as it can be represented by the finite automaton so ans B
Answer:

Related questions

15.8k
views
4 answers
29 votes
Ishrat Jahan asked Nov 3, 2014
15,804 views
A language $L$ satisfies the Pumping Lemma for regular languages, and also the Pumping Lemma for context-free languages. Which of the following statements about $L$ is TR...
6.6k
views
1 answers
23 votes
Ishrat Jahan asked Nov 3, 2014
6,631 views
The language $\{0^n 1^n 2^n \mid 1 \leq n \leq 10^6\}$ isregularcontext-free but not regularcontext-free but its complement is not context-freenot context-free
6.6k
views
2 answers
36 votes
Ishrat Jahan asked Nov 3, 2014
6,637 views
Consider the context-free grammar$E \rightarrow E + E$$E \rightarrow (E * E)$$E \rightarrow id$where $E$ is the starting symbol, the set of terminals is $\{id, (,+,),*\...
9.6k
views
5 answers
30 votes
Ishrat Jahan asked Nov 3, 2014
9,572 views
Let $T(n)$ be a function defined by the recurrence$T(n) = 2T(n/2) + \sqrt n$ for $n \geq 2$ and$T(1) = 1$Which of the following statements is TRUE?$T(n) = \Theta(\log n)$...