Skip to content
Mad4Study

Engineering & Science

GATE Computer Science

GATE Computer Science Theory of Computation questions

17 questions. Filter by chapter or difficulty, pick an answer to check it, then open the solution.

17 of 17 questions

    • GATE CS
    • 2026–27 pattern practice
    • Theory of Computation
    • Context-free grammars
    • Easy

    Question 2: The language L={anbn:n≥0}L = \{a^nb^n : n \ge 0\} is

    Context-Free Languages

    Pick an option to check your answer.

    • GATE CS
    • 2026–27 pattern practice
    • Theory of Computation
    • Undecidability
    • Medium

    Question 3: Which of the following problems is decidable?

    Computability

    Pick an option to check your answer.

    • GATE CS
    • 2026–27 pattern practice
    • Theory of Computation
    • Regular expressions
    • Easy

    Question 6: Which language over {a, b} is regular?

    Regular Languages

    Pick an option to check your answer.

    • GATE CS
    • 2026–27 pattern practice
    • Theory of Computation
    • Context-free grammars
    • Easy

    Question 7: Which language is generated by the grammar S→aSb∣εS \to aSb \mid \varepsilon?

    Context-Free Languages

    Pick an option to check your answer.

    • GATE CS
    • 2026–27 pattern practice
    • Theory of Computation
    • Undecidability
    • Medium

    Question 9: For context-free grammars, which problem is decidable?

    Computability

    Pick an option to check your answer.

    • GATE CS
    • 2026–27 pattern practice
    • Theory of Computation
    • Context-free grammars
    • Easy

    Question 12: Which of the following languages is NOT context-free?

    Context-Free Languages

    Pick an option to check your answer.

    • GATE CS
    • 2026–27 pattern practice
    • Theory of Computation
    • Context-free grammars
    • Easy

    Question 16: Which of the following languages is regular?

    Context-Free Languages

    Pick an option to check your answer.

    • GATE CS
    • 2026–27 pattern practice
    • Theory of Computation
    • Context-free grammars
    • Medium

    Question 17: Context-free languages are NOT closed under which operation?

    Context-Free Languages

    Pick an option to check your answer.