Menu

Regular Expressions Questions

MCQ
31.
Let L1 = {w ? {0,1}? | w has at least as many occurrences
of (110)
forum Discussion
MCQ
32.
The length of the shortest string NOT in the language (over ? = {a, b}) of the following regular expression is _____________
a*b*(ba)*a*
forum Discussion
MCQ
33.
How many minimum states are required to find whether a string has odd number of 0
forum Discussion
MCQ
34.
Consider alphabet ? = {0, 1}, the null/empty string ? and the sets of strings X0, X1 and X0.How are X1 and X2 are related ?
X0 = 1 X1

X1 = 0 X1 + 1 X2

X2 = 0 X1 + {?}

Which one of the following represents the strings in X0?
forum Discussion
MCQ
35.
Which of the following languages is/are regular?
L1: {wxwR ? w, x ? {a, b}* and ?w?, ?x? >0} wR is the reverse of string w

L2: {anbm ?m ? n and m, n?0

L3: {apbqcr ? p, q, r ? 0}
forum Discussion
MCQ
36.
The set of all strings over ? = {a,b} in which strings consisting a
forum Discussion
MCQ
37.
An individual token is called ________
forum Discussion
MCQ
38.
 Which of the following statement is correct?
forum Discussion
MCQ
39.
Which of the following pairs of regular expressions are equivalent?
forum Discussion
MCQ
40.
Which of the following are not regular?
forum Discussion