Question 1
Consider the 5-state DFA π accepting the language πΏ(π) β (0 + 1) β shown below. For any string π€ β (0 + 1) β let π0(π€) be the number of 0 β² π in π€ and π1(π€) be the number of 1β²π in π€.

Which of the following statements is/are FALSE?
[GATE 2024||SET-1 MSQ|| 2-mark]
States 2 and 4 are distinguishable in π
States 3 and 4 are distinguishable in π
States 2 and 5 are distinguishable in π
Any string π€ with π0 (π€) = π1(π€) is in πΏ(π)
Question 2
Let Ξ£ = {π, π, π}. For π₯ β Ξ£ β , and πΌ β Ξ£, let #πΌ(π₯) denote the number of occurrences of πΌ in π₯. Which one or more of the following option(s) define(s) regular language(s)?
[GATE 2025||SET-2 MSQ|| 2-mark]
{π ππ π | π, π β₯ 0}
{π, π} β β© {ππππ ππβπ | π β₯ π β₯ 0}
{π€ | π€ β {π, π} β , #π (π€) β‘ 2 (mod 7), and #π (π€) β‘ 3 (mod 9)}
{π€ | π€ β {π, π} β , #π (π€) β‘ 2 (mod 7), and #π (π€) = #π(π€)}
Question 3
Consider the two lists List I and List II given below:
List 1 | List 2 |
|---|---|
(i) Context free languages | (a) Closed under union |
(ii) Recursive languages | (b) Not closed under complementation |
(iii) Regular languages | (c) Closed under intersection |
For matching of items in List I with those in List II, which of the following option(s) is/are CORRECT?
[GATE 2025||SET-2 MSQ|| 1-mark]
(i) β (a), (ii) β (b), and (iii) β (c)
(i) β (b), (ii) β (a), and (iii) β (c)
(i) β (b), (ii) β (c), and (iii) β (a)
(i) β (a), (ii) β (c), and (iii) β (b)
Question 4
Consider a finite state machine (FSM) with one input π and one output π, represented by the given state transition table. The minimum number of states required to realize this FSM is ________. (Answer in integer)

[GATE 2025||SET-1 NAT|| 2-mark]
5
Question 5
Consider the following deterministic finite automaton (DFA) defined over the alphabet, Ξ£ = {π, π}. Identify which of the following language(s) is/are accepted by the given DFA.

[GATE 2025||SET-2 MSQ|| 2-mark]
The set of all strings containing an even number of πβs.
The set of all strings containing the pattern πππ.
The set of all strings ending with the pattern πππ.
The set of all strings not containing the pattern πππ.
Question 6
Consider the following two languages over the alphabet {π, π}:
πΏ1 = { πΌπ½πΌ | πΌ β {π, π}+ AND π½ β {π, π}+ }
πΏ2 = { πΌπ½πΌ | πΌ β {π}+ AND π½ β {π, π}+ }
Which ONE of the following statements is CORRECT?
[GATE 2025||SET-1 MCQ|| 2-mark]
Both πΏ1 and πΏ2 are regular languages.
πΏ1 is a regular language but πΏ2 is not a regular language.
πΏ1 is not a regular language but πΏ2 is a regular language.
Neither πΏ1 nor πΏ2 is a regular language.
Question 7
Let π be the set of all ternary strings defined over the alphabet {π, π, π}. Consider all strings in π that contain at least one occurrence of two consecutive symbols, that is, βaaβ, βbbβ or βccβ. The number of such strings of length 5 that are possible is _______. (Answer in integer)
[GATE 2025||SET-1 NAT|| 1-mark]
195
Question 8
A regular language πΏ is accepted by a non-deterministic finite automaton (NFA) with π states. Which of the following statement(s) is/are FALSE?
[GATE 2025||SET-1 MSQ|| 1-mark]
πΏ may have an accepting NFA with < π states.
πΏ may have an accepting DFA with < π states.
There exists a DFA with β€ 2π states that accepts πΏ.
Every DFA that accepts πΏ has > 2π states.
Question 9
Consider the following two regular expressions over the alphabet {0,1}:
π = 0 β + 1 β
π = 01 β + 10 β
The total number of strings of length less than or equal to 5, which are neither in π nor in π , is _________
[GATE 2024||SET-1 NAT|| 2-mark]
44
Question 10
Let Ξ£ = {1,2,3,4}. For π₯ β Ξ£ β , let ππππ(π₯) be the product of symbols in π₯ modulo 7. We take ππππ(π) = 1, where π is the null string.
For example, ππππ(124) = (1 Γ 2 Γ 4) mod 7 = 1.
Define πΏ = {π₯ β Ξ£ β | ππππ(π₯) = 2}.
The number of states in a minimum state DFA for πΏ is ___________. (Answer in integer)
[GATE 2025||SET-2 NAT|| 2-mark]
6
There are 66 questions to complete.