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- 2". These 30 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.
Consider the regular grammar below
The Myhill-Nerode equivalence classes for the language generated by the grammar are
Detailed Solution: Question 1
Consider the alphabet ∑ = {0,1} , the null/empty string λ and the set of strings X0,X1 and X2 generated by the corresponding non-terminals of a regular grammar. X0,X1 and X2 are related as follows.
Which one of the following choices precisely represents the strings in X0?
Detailed Solution: Question 2
Detailed Solution: Question 3
Let L1 and L2 be languages over an alphabet £ such that L1 ⊂ L2. Which of the following is true
Detailed Solution: Question 4
Language L1 is defined by the grammar:
Language L2 is defined by the grammar:
Consider the following statements:
Which one of the following is TRUE?
Detailed Solution: Question 5
Choose the correct alternatives (More than one may be correct).
Let R1 and R2 be regular sets defined over the alphabet ∑ Then:
Detailed Solution: Question 6
Choose the correct alternatives (more than one may be correct) and write the corresponding letters only: Which of the following is the strongest correct statement about a finite language over some finite alphabet ?
Detailed Solution: Question 7
Detailed Solution: Question 8
Which of the following statements is false?
Detailed Solution: Question 9
Detailed Solution: Question 10
What can be said about a regular language L over { a } whose minimal finite state automaton has two states?
Detailed Solution: Question 11
Consider the following two statements:
Which of the following statement is correct?
Detailed Solution: Question 12
Consider the following languages:
Which of the languages are regular?
Detailed Solution: Question 13
If s is a string over (0+1)* then let n0(s) denote the number of 0’s in s and n1(s) the number of 1’s in s. Which one of the following languages is not regular ?
Detailed Solution: Question 14
Which of the following statements about regular languages is NOT true ?
Detailed Solution: Question 15
Let L be a regular language. Consider the constructions on L below:
Which of the constructions could lead to a non-regular language?
Detailed Solution: Question 16
Which of the following languages is regular?
Detailed Solution: Question 17
Detailed Solution: Question 18
Which of the following languages is (are) non-regular?
reads the same forward and backward}
contains an even number of 0's and an even number of 1's}
Detailed Solution: Question 19
Which of the following are regular sets?
Detailed Solution: Question 20
Let P be a regular language and Q be a context-free language such that (For example, let P be the language represented by the regular expression
Then which of the following is ALWAYS regular?
Detailed Solution: Question 21
Given the language which of the following strings are in L*?
Detailed Solution: Question 22
Consider the languages Which one of the following represents
Detailed Solution: Question 23
Detailed Solution: Question 24
Detailed Solution: Question 25
Which of the following is/are regular languages?
, is the reverse of string ω
Detailed Solution: Question 26
Consider the following three statements:
(i) Intersection of infinitely many regular languages must be regular.
(ii) Every subset of a regular language is regular.
(iii) If L is regular and M is not regular then L.M is necessarily not regular.
Which of the following gives the correct true/false evaluation of the above?
Detailed Solution: Question 27
Let B consist of all binary strings beginning with a 1 whose value when converted to decimal is divisible by 7 .
Detailed Solution: Question 28
Which one of the following languages over the alphabet 0,1 is regular?
Detailed Solution: Question 29
Identify the regular expression which represents the language containing all strings of a's and b's where each string contains at least two b's
Detailed Solution: Question 30