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 & Finite Automata- 2". 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 is TRUE?
Detailed Solution: Question 1
Which of the regular expressions given below represent the following DFA?
I) 0*1(1+00*1)*
II) 0*1*1+11*0*1
III) (0+1)*1
Detailed Solution: Question 3
Q. Which one of the following is CORRECT?
Detailed Solution: Question 4
Let L1 = {w ∈ {0,1}∗ | w has at least as many occurrences of (110)’s as (011)’s}.
Let L2 = { ∈ {0,1}∗ | w has at least as many occurrences of (000)’s as (111)’s}.
Q. Which one of the following is TRUE?
Detailed Solution: Question 5
The length of the shortest string NOT in the language (over Σ = {a, b}) of the following regular expression is ______________.
a*b*(ba)*a*
Detailed Solution: Question 6
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 7
Consider the regular language L = (111 + 11111)*. The minimum number of states in any DFA accepting this languages is:
Detailed Solution: Question 8
Consider the machine M:
Q. The language recognized by M is :
Detailed Solution: Question 9
Let Nf and Np denote the classes of languages accepted by non-deterministic finite automata and non-deterministic push-down automata, respectively. Let Df and Dp denote the classes of languages accepted by deterministic finite automata and deterministic push-down automata, respectively. Which one of the following is TRUE?
Detailed Solution: Question 10
The following diagram represents a finite state machine which takes as input a binary number from the least significant bit.
Q. Which one of the following is TRUE?
Detailed Solution: Question 11
The following finite state machine accepts all those binary strings in which the number of 1's and 0's are respectively.
Detailed Solution: Question 12
The regular expression 0*(10*)* denotes the same set as
Detailed Solution: Question 13
Consider the following deterministic finite state automaton M.
Let S denote the set of seven bit binary strings in which the first, the fourth, and the last bits are 1. The number of strings in S that are accepted by M is
Detailed Solution: Question 14
Consider the NFA M shown below.
Q. Let the language accepted by M be L. Let L1 be the language accepted by the NFA M1, obtained by changing the accepting state of M to a non-accepting state and by changing the non-accepting state of M to accepting states. Which of the following statements is true ?
Detailed Solution: Question 15
The Finite state machine described by the following state diagram with A as starting state, where an arc label is x / y and x stands for 1-bit input and y stands for 2- bit output
Detailed Solution: Question 16
The smallest finite automation which accepts the language {x | length of x is divisible by 3} has :
Detailed Solution: Question 17
Consider the following two statements:
Detailed Solution: Question 18
Given an arbitary non-deterministic finite automaton (NFA) with N states, the maximum number of states in an equivalent minimized DFA is at least
Consider a DFA over ∑ = {a, b} accepting all strings which have number of a’s divisible by 6 and number of b’s divisible by 8. What is the minimum number of states that the DFA will have?
Detailed Solution: Question 20