1
GATE CSE 2025 Set 2
MCQ (Single Correct Answer)
+1
-0.33

Which ONE of the following languages is accepted by a deterministic pushdown automaton?

A
Any regular language.
B
Any context-free language.
C
Any language accepted by a non-deterministic pushdown automaton.
D
Any decidable language.
2
GATE CSE 2025 Set 2
MCQ (Single Correct Answer)
+1
-0.33

Let $G_1, G_2$ be Context Free Grammars (CFGs) and $R$ be a regular expression. For a grammar $G$, let $L(G)$ denote the language generated by $G$. Which ONE among the following questions is decidable?

A
Is $L\left(G_1\right)=L\left(G_2\right)$ ?
B
Is $L\left(G_1\right) \cap L\left(G_2\right)=\varnothing$ ?
C
Is $L\left(G_1\right)=L(R)$ ?
D
Is $L\left(G_1\right)=\varnothing$ ?
3
GATE CSE 2025 Set 2
MCQ (More than One Correct Answer)
+1
-0

Consider the two lists List-I and List-II given below:

List - I List - II
(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?

A
(i) - (a), (ii) - (b), and (iii) - (c)
B
(i) - (b), (ii) - (a), and (iii) - (c)
C
(i) - (b), (ii) - (c), and (iii) - (a)
D
(i) - (a), (ii) - (c), and (iii) - (b)
4
GATE CSE 2025 Set 1
MCQ (Single Correct Answer)
+1
-0.33

Consider the following context-free grammar $G$, where $S, A$, and $B$ are the variables (nonterminals), $a$ and $b$ are the terminal symbols, $S$ is the start variable, and the rules of $G$ are described as:

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

Which ONE of the languages $L(G)$ is accepted by $G$ ?

A
$L(G)=\left\{a^2 b^n \mid n \geq 1\right\} \cup\left\{a^n b^2 \mid n \geq 1\right\}$
B
$L(G)=\left\{a^n b^{2 n} \mid n \geq 1\right\} \cup\left\{a^{2 n} b^n \mid n \geq 1\right\}$
C
$L(G)=\left\{a^n b^n \mid n \geq 1\right\}$
D
$L(G)=\left\{a^{2 n} b^{2 n} \mid n \geq 1\right\}$
GATE CSE Subjects
Software Engineering
Web Technologies
EXAM MAP
Medical
NEETAIIMS
Graduate Aptitude Test in Engineering
GATE CSEGATE ECEGATE EEGATE MEGATE CEGATE PIGATE IN
Civil Services
UPSC Civil Service
Defence
NDA
Staff Selection Commission
SSC CGL Tier I
CBSE
Class 12