You can prepare effectively for Computer Science Engineering (CSE) GATE Computer Science Engineering(CSE) 2027 Mock Test Series with this dedicated MCQ Practice Test (available with solutions) on the important topic of "Test: Regular Expressions & Languages- 1". These 20 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.
Which one of the following regular expressions represents the language: the set of all binary strings having two consecutive 0's and two consecutive 1's?
Detailed Solution: Question 1
Choose the correct alternatives (more than one may be correct) and write the corresponding letters only.
Let be three regular expressions. Which one of the following is true?
Detailed Solution: Question 2
Choose the correct alternatives (more than one may be correct) and write the corresponding letters only: Which of the following regular expression identities is/are TRUE?
Detailed Solution: Question 3
In some programming language, an identifier is permitted to be a letter followed by any number of letters or digits. If and denote the sets of letters and digits respectively, which of the following expressions defines an identifier?
Detailed Solution: Question 4
Which two of the following four regular expressions are equivalent? (ε is the empty string).
Detailed Solution: Question 5
Detailed Solution: Question 6
If the regular set A is represented by A — (01 + 1)* and the regular set B is represented by B — ((01)*1*)*, which of the following is true?
Detailed Solution: Question 7
The string 1101 does not belong to the set represented by
Detailed Solution: Question 8
Lets' and T be languages over S = {a. b} represented by the regular expressions (a + b*)* and (a + b)*, respectively. Which of the following is true?
Detailed Solution: Question 9
The regular expression 0*(10*)* denotes the same set as
Detailed Solution: Question 10
Which of the following statements is TRUE about the regular expression 01*0?
Detailed Solution: Question 11
Which one of the following regular expressions is NOT equivalent to the regular expression (a + b + c)*?
Detailed Solution: Question 12
Which regular expression best describes the language accepted by the non-deterministic automaton below?
Detailed Solution: Question 13
Consider the regular expression R = (a + b)* (aa + bb) (a + b)*
Which one of the regular expressions given below defines the same language as defined by the regular expression R?
Detailed Solution: Question 14
Which of the following regular expressions describes the language over{0, 1} consisting of strings that contain exactly two 1's?
Detailed Solution: Question 15
Which one of the following languages over the alphabet {0,1} is described by the regular expression: (0 + 1)*0(0 + 1)*0(0 + 1)*?
Detailed Solution: Question 16
Let has even number of 1s} i.e., L is the set of all the bit strings with even numbers of 1s. Which one of the regular expressions below represents L?
Detailed Solution: Question 17
Which of the regular expressions given below represent the following DFA?
Detailed Solution: Question 18
Let r,s,t be regular expressions. Which of the following identities is correct?
Detailed Solution: Question 19
Which of the following regular expressions correctly accepts the set of all 0/1-strings with an even (poossibly zero) numbe of 1s?
Detailed Solution: Question 20