1
GATE CSE 2026 Set 1
MCQ (More than One Correct Answer)
+1
-0

Consider the following grammar where $S$ is the start symbol, and $a$ and $b$ are terminal symbols.

$$ S \rightarrow a S b S|b S| \in $$

Which of the following statements is/are true?

A

The grammar is ambiguous.

B

The string $a b b$ has two distinct derivations in this grammar.

C

The string $a b a b$ has only one rightmost derivation.

D

The language generated by the grammar is undecidable.

2
GATE CSE 2026 Set 1
MCQ (More than One Correct Answer)
+1
-0

Let $M$ be a non-deterministic finite automaton (NFA) with 6 states over a finite alphabet. Which of the following options CANNOT be the number of states in the minimal deterministic finite automaton (DFA) that is equivalent to $M$ ?

A

32

B

65

C

1

D

128

3
GATE CSE 2026 Set 1
MCQ (Single Correct Answer)
+2
-0

Let $L_1$ and $L_2$ be two languages over a finite alphabet, such that $L_1 \cap L_2$ and $L_2$ are regular languages.

Which of the following statements is/are always true?

A

$L_1$ is regular

B

$L_1 \cup L_2$ is regular

C

$\overline{L_2}$ is context free

D

$L_1$ is context free

4
GATE CSE 2026 Set 1
MCQ (More than One Correct Answer)
+2
-0

Consider the following context-free grammar $G$ :

$$ \begin{aligned} & S \rightarrow a b a A B A b b a \\ & A \rightarrow a a B B A b \mid b B a b a a \\ & B \rightarrow a B b \mid a b \end{aligned} $$

In the above grammar, $S$ is the start symbol, $a$ and $b$ are terminal symbols, and $A$ and $B$ are non-terminal symbols.

Let $L(G)$ be the language generated by the grammar $G$. For a string $s \in L(G)$, let $n_1(s)$ be the number of a's in $s$ and $n_2(s)$ be the number of b's in $s$.

Which of the following statements is/are true?

A

There is a string $s \in L(G)$ such that $n_1(s)

B

For every string $s \in L(G), n_1(s) \geq n_2(s)$

C

There is a string $s \in L(G)$ such that $n_1(s)>2 n_2(s)$

D

For every string $s \in L(G), n_1(s) \leq 2 n_2(s)$