chapter
    Turing Machines, Decidability and Undecidability PYQs for GATE CS

    Solve 6+ Turing Machines, Decidability and Undecidability previous year questions for GATE CS with answers and detailed solutions. Free sample questions below

    Try a question

    Answer it here to see how it works. Nothing is recorded until you sign in.

    Question 1
    2026 Slot Set2 PYQ
    Which one of the following statements is equivalent to the following assertion?

    Question 2
    2025 Slot Set2 PYQ
    Let , be Context Free Grammars (CFGs) and be a regular expression. For a grammar , let denote the language generated by .

    Which ONE among the following questions is decidable?
    Question 3
    2022 PYQ

    Which of the following statements is/are TRUE?

    Question 4
    2022 PYQ

    Which of the following is/are undecidable?

    Question 5
    2021 Slot Set1 PYQ
    For a Turing machine , denotes an encoding of . Consider the following two languages.



    Which one of the following options is correct?
    Question 6
    2021 Slot Set1 PYQ

    Let denote an encoding of an automaton . Suppose that . Which of the following languages is/are NOT recursive?

    Free preview ends here

    Login to view the complete previous-year questions and solutions

    Creating an account is free. You get the rest of this chapter, step-by-step solutions, and a study plan built around the topics you are actually weak at.

    Why MastersUp

    Personalised first. High quality throughout.

    Most platforms hand everyone the same content. Here the content moves with your performance, topic by topic.

    Built around you, not around a syllabus PDF

    Every answer you give moves your topic-level intelligence rate. The next question, the next revision card and tomorrow's plan all change with it.

    Revision that hits your weak spots

    We only revise topics you have actually attempted and are still below the safe bar on — never the same chapter on repeat.

    Questions calibrated to the real exam

    Each question carries a measured toughness. You are served a rung above your current level, so practice keeps stretching you.

    Notes written for recall, not for volume

    Full lesson cards for first study, curated short-note cards for the last mile — with derivations, traps and exam patterns marked.

    One place for everything

    Notes, chapter practice, previous-year questions, test series and full-length papers — all feeding one picture of your preparation.

    Honest progress

    No vanity streaks. Progress here means chapters mastered and accuracy that held up on harder questions.

    Unlock the whole course

    Full notes and short notes, the complete question bank with worked solutions, mock tests, full-length papers, and an adaptive plan that rebuilds itself as you improve.

    Turing Machines, Decidability and Undecidability PYQs for GATE CS

    Solve 6+ Turing Machines, Decidability and Undecidability previous year questions for GATE CS with answers and detailed solutions. Free sample questions below.

    Perfect Shuffle and Sequence Permutations

    Algorithmic Thinking • String & Sequence Manipulation

    Perfect Shuffle & Sequence Permutations

    The mathematical backbone of interleaving data — essential for understanding deterministic permutations in programming.

    Core Concept Exam Pattern

    What you will learn here

    • The exact definition and mechanics of a perfect shuffle
    • How to map any element's old index to its new index using a formula
    • Tracing multiple consecutive shuffles without brute force
    • Critical edge cases and common off-by-one traps

    Intuition: The Two-Half Interleave

    The Physical Analogy

    Think of a standard deck of cards. A perfect shuffle (also called a Faro shuffle) is not a random mix. It is a strictly deterministic operation.

    Step 1: Split

    Divide the sequence of elements into two equal halves of size .

    Step 2: Interleave

    Alternate picking elements, starting with the first half.

    If our sequence is :

    • First half:
    • Second half:

    Interleaving step-by-step:

    1. Take 1 (from first half)
    2. Take 6 (from second half)
    3. Take 2 (from first half)
    4. Take 7 (from second half) ...and so on.

    Result:

    Notice that the very first element and the very last element never change their positions in this specific type of shuffle.

    Turing Machines, Decidability and Undecidability: Solved Questions with Step-by-Step Explanations (6 Problems)

    Question 1 · Theory of Computation · 2026_Set2 MCQ
    Which one of the following statements is equivalent to the following assertion?

    1. A.

      Turing machine halts on all input strings in

    2. B.

      Turing machine accepts all input strings in

    3. C.

      Turing machine rejects all input strings in

    4. D.

      Turing machine accepts all input strings in and rejects all input strings in

    Question 2 · Theory of Computation · 2025_Set2 MCQ
    Let , be Context Free Grammars (CFGs) and be a regular expression. For a grammar , let denote the language generated by .

    Which ONE among the following questions is decidable?
    1. A.

      Is ?

    2. B.

      Is ?

    3. C.

      Is ?

    4. D.

      Is ?

    Question 3 · Theory of Computation · 2022 MSQ

    Which of the following statements is/are TRUE?

    1. A.

      Every subset of a recursively enumerable language is recursive.

    2. B.

      If a language and its complement are both recursively enumerable, then must be recursive.

    3. C.

      Complement of a context-free language must be recursive.

    4. D.

      If and are regular, then must be deterministic context-free.

    Question 4 · Theory of Computation · 2022 MSQ

    Which of the following is/are undecidable?

    1. A.

      Given two Turing machines and , decide if .

    2. B.

      Given a Turing machine , decide if is regular.

    3. C.

      Given a Turing machine , decide if accepts all strings.

    4. D.

      Given a Turing machine , decide if takes more than 1073 steps on every string.

    Question 5 · Theory of Computation · 2021_Set1 MCQ
    For a Turing machine , denotes an encoding of . Consider the following two languages.



    Which one of the following options is correct?
    1. A.

      Both and are decidable.

    2. B.

      is decidable and is undecidable.

    3. C.

      is undecidable and is decidable.

    4. D.

      Both and are undecidable.

    Question 6 · Theory of Computation · 2021_Set1 MSQ

    Let denote an encoding of an automaton . Suppose that . Which of the following languages is/are NOT recursive?

    1. A.

    2. B.

    3. C.

    4. D.

    More previous year questions (pyqs) in this unit