You can prepare effectively for Computer Science Engineering (CSE) Compiler Design with this dedicated MCQ Practice Test (available with solutions) on the important topic of "Test: Regular Expression". These 15 questions have been designed by the experts with the latest curriculum of Computer Science Engineering (CSE) 2026, to help you master the concept.
Test Highlights:
Sign up on EduRev for free to attempt this test and track your preparation progress.
A regular expression enables a quick test to determine objects and text strings with undependable values.
Detailed Solution: Question 1
RE can be used only for values of type string and number.
Detailed Solution: Question 2
You can use RE, if you expect the value of a property to change in an unpredictable way each time its run.
Detailed Solution: Question 3
All ___________ Are automatically treated as regular expressions.
Detailed Solution: Question 4
If a ‘/’ is used before a character that has no special meaning, ‘/’ is ignored.
Detailed Solution: Question 5
The regular expression denote a language comprising all possible strings of even length over the alphabet (0, 1)
Detailed Solution: Question 6
Detailed Solution: Question 7
The RE in which any number of 0′s is followed by any number of 1′s followed by any number of 2′s is
Detailed Solution: Question 8
The regular expression have all strings of 0′s and 1′s with no two consecutive 0′s is :
Detailed Solution: Question 9
The regular expression with all strings of 0′s and 1′s with at least two consecutive 0′s is:
Detailed Solution: Question 10
Which of the following is NOT the set of regular expression R = (ab + abb)* bbab
Detailed Solution: Question 12
Detailed Solution: Question 13
If R is regular language and Q is any language (regular/ non regular), then Pref (Q in R) is _____________
Detailed Solution: Question 14
The production of the form non terminal → Λ is said to be null production.
Detailed Solution: Question 15
26 videos|92 docs|30 tests |