Regular Expression · Theory of Computation
19 questions · asked in 14 of 27 years (2000–2026)
MCQ 16 · MSQ 1 · NAT 21-mark 15 · 2-mark 4
2000Questions per year2026
Questions 16–19 of 19
Which of the following statements is TRUE about the regular expression 01*0?
Answer: (B)
Correct Option: B
The set is infinite, since the expression has in it. Every string in the set is finite. A string is defined as a FINITE sequence of characters, so it can never be infinite.
Which one of the following regular expressions is NOT equivalent to the regular expression
Answer: (C)
(A) contains the strings , and , and it is a set of strings over . So it equals .
(B) also contains , , (take two of the three stars empty). So it equals .
(D) contains , (from ) and (from ). So it equals .
(C) . Every string in it is built only from the blocks and . The string is in but cannot be built from these blocks, so (C) is not equivalent.
Answer: (C)
(B) also contains , , (take two of the three stars empty). So it equals .
(D) contains , (from ) and (from ). So it equals .
(C) . Every string in it is built only from the blocks and . The string is in but cannot be built from these blocks, so (C) is not equivalent.
Answer: (C)
The regular expression 0*(10*)* denotes the same set as
Answer: (A)
Given expression : a string is some 0s, then blocks that each start with 1 and have any number of 0s after it. Every binary string splits this way (the leading 0s, then each 1 with the 0s that follow it), so it denotes all of .
(A) : cut a string after its last 0. The front part is a sequence of blocks , and the rest is . So it also denotes all strings.
(B) is built from the blocks and , so it cannot generate .
(C) needs the substring , so it cannot generate or .
(D) is wrong because (A) matches.
Answer: (A)
(A) : cut a string after its last 0. The front part is a sequence of blocks , and the rest is . So it also denotes all strings.
(B) is built from the blocks and , so it cannot generate .
(C) needs the substring , so it cannot generate or .
(D) is wrong because (A) matches.
Answer: (A)
Let S and T be languages over represented by the regular expressions , respectively. Which of the following is true?
Answer: (C)
, so contains both and . Then , that is .
Both languages are sets of strings over , so .
So . Both equal .
(A) and (B) are wrong because neither set is a proper subset of the other. (D) is wrong because both contain the empty string and every other string, so .
Answer: (C)
Both languages are sets of strings over , so .
So . Both equal .
(A) and (B) are wrong because neither set is a proper subset of the other. (D) is wrong because both contain the empty string and every other string, so .
Answer: (C)
Keep practising