Topics

All Theory of Computation questions

  1. GATE CS 2026 Set 1MSQ1 markMedium (estimate)

    GATE CS 2026 Set 1, Q.25

    Consider the following grammar where is the start symbol, and and are terminal symbols. Which of the following statement...

    Context-Free Grammars, Pushdown Automata and CFLs

  2. GATE CS 2026 Set 1MSQ1 markEasy (estimate)

    GATE CS 2026 Set 1, Q.26

    Let be a nondeterministic finite automaton (NFA) with 6 states over a finite alphabet. Which of the following options CANNOT be the number of states in the minimal determini...

    Regular Expressions, Finite Automata and Regular Languages

  3. GATE CS 2026 Set 1MSQ2 marksEasy (estimate)

    GATE CS 2026 Set 1, Q.51

    Let and be two languages over a finite alphabet, such that and are regular languages. Which of the following statements is/are always true?

    Context-Free Grammars, Pushdown Automata and CFLs

  4. GATE CS 2026 Set 1MSQ2 marksMedium (estimate)

    GATE CS 2026 Set 1, Q.52

    Consider the following context-free grammar . In the above grammar, is the...

    Context-Free Grammars, Pushdown Automata and CFLs

  5. GATE CS 2026 Set 2MCQ1 markEasy (estimate)

    GATE CS 2026 Set 2, Q.13

    Which one of the following statements is equivalent to the following assertion? Turing machine decides the language

    Decidability, Reducibility and Undecidability

  6. GATE CS 2026 Set 2MSQ2 marksMedium (estimate)

    GATE CS 2026 Set 2, Q.47

    Consider the following two finite automata and . Two finite automata D1 and D2 over alphabet {0, 1}. D1 accepts strings formed by concatenating {000, 001, 010, 101},...

    Regular Expressions, Finite Automata and Regular Languages

  7. GATE CS 2026 Set 2MSQ2 marksMedium (estimate)

    GATE CS 2026 Set 2, Q.48

    Let and let . Which of the following constraints ensure(s) that the language is context-free?

    Context-Free Grammars, Pushdown Automata and CFLs

  8. GATE CS 2025 Set 1MCQ1 markEasy (estimate)

    GATE CS 2025 Set 1, Q.19

    Consider the following context-free grammar , where , , and are the variables (non-terminals), and are the terminal symbols, is the start variable, and...

    Context-Free Grammars, Pushdown Automata and CFLs

  9. GATE CS 2025 Set 1MSQ1 markEasy (estimate)

    GATE CS 2025 Set 1, Q.28

    A regular language is accepted by a non-deterministic finite automaton (NFA) with states. Which of the following statement(s) is/are FALSE?

    Regular Expressions, Finite Automata and Regular Languages

  10. GATE CS 2025 Set 1MCQ2 marksMedium (estimate)

    GATE CS 2025 Set 1, Q.44

    Consider the following two languages over the alphabet : …

    Regular Expressions, Finite Automata and Regular Languages

  11. GATE CS 2025 Set 1MCQ2 marksMedium (estimate)

    GATE CS 2025 Set 1, Q.45

    Consider the following two languages over the alphabet , where and are natural numbers. …

    Context-Free Grammars, Pushdown Automata and CFLs

  12. GATE CS 2025 Set 1MSQ2 marksMedium (estimate)

    GATE CS 2025 Set 1, Q.50

    Consider the following deterministic finite automaton (DFA) defined over the alphabet, . Identify which of the following language(s) is/are accepted by the gi...

    Regular Expressions, Finite Automata and Regular Languages

  13. GATE CS 2025 Set 2MCQ1 markEasy (estimate)

    GATE CS 2025 Set 2, Q.24

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

    Context-Free Grammars, Pushdown Automata and CFLs

  14. GATE CS 2025 Set 2MCQ1 markEasy (estimate)

    GATE CS 2025 Set 2, Q.25

    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...

    Decidability, Reducibility and Undecidability

  15. GATE CS 2025 Set 2MSQ1 markEasy (estimate)

    GATE CS 2025 Set 2, Q.30

    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 complementa...

    Context-Free Grammars, Pushdown Automata and CFLs · Decidability, Reducibility and Undecidability · Regular Expressions, Finite Automata and Regular Languages

  16. GATE CS 2025 Set 2MSQ2 marksEasy (estimate)

    GATE CS 2025 Set 2, Q.52

    Let . For , and , let denote the number of occurrences of in . Which one or more of the follo...

    Regular Expressions, Finite Automata and Regular Languages

  17. GATE CS 2025 Set 2NAT2 marksMedium (estimate)

    GATE CS 2025 Set 2, Q.60

    Let . For , let be the product of symbols in modulo . We take , where is the null string...

    Regular Expressions, Finite Automata and Regular Languages

  18. GATE CS 2024 Set 1MSQ1 markEasy (estimate)

    GATE CS 2024 Set 1, Q.23

    Let be two regular languages and a language which is not regular. Which of the following statements is/are always TRUE?

    Regular Expressions, Finite Automata and Regular Languages

  19. GATE CS 2024 Set 1MSQ2 marksMedium (estimate)

    GATE CS 2024 Set 1, Q.50

    Consider the 5-state DFA accepting the language shown below. For any string let be the number of 's in and…

    Regular Expressions, Finite Automata and Regular Languages

  20. GATE CS 2024 Set 1NAT2 marksEasy (estimate)

    GATE CS 2024 Set 1, Q.59

    Let be a context-free grammar in Chomsky Normal Form with and containing 10 variable symbols including the start symbol . T...

    Context-Free Grammars, Pushdown Automata and CFLs

  21. GATE CS 2024 Set 1NAT2 marksMedium (estimate)

    GATE CS 2024 Set 1, Q.61

    Consider the following two regular expressions over the alphabet : The total number of strings of length less than or equal to 5,...

    Regular Expressions, Finite Automata and Regular Languages

  22. GATE CS 2024 Set 2MCQ1 markEasy (estimate)

    GATE CS 2024 Set 2, Q.22

    Which one of the following regular expressions is equivalent to the language accepted by the DFA given below? A 2-state DFA where the left initial state has a self-loop on 0 and...

    Regular Expressions, Finite Automata and Regular Languages

  23. GATE CS 2024 Set 2MCQ2 marksMedium (estimate)

    GATE CS 2024 Set 2, Q.41

    Let be the 5-state NFA with -transitions shown in the diagram below. A 5-state NFA M with states 1 to 5: state 1 is the start state with epsilon transitions to sta...

    Regular Expressions, Finite Automata and Regular Languages

  24. GATE CS 2024 Set 2MSQ2 marksMedium (estimate)

    GATE CS 2024 Set 2, Q.52

    Consider a context-free grammar with the following 3 rules. Let . Let…

    Context-Free Grammars, Pushdown Automata and CFLs

  25. GATE CS 2024 Set 2NAT2 marksEasy (estimate)

    GATE CS 2024 Set 2, Q.62

    Let be the language represented by the regular expression and , where denotes the length of string…

    Regular Expressions, Finite Automata and Regular Languages · Combinatorics, Counting, Recurrence Relations and Generating Functions

  26. GATE CS 2023MCQ1 markEasy (estimate)

    GATE CS 2023, Q.14

    Consider the Deterministic Finite-state Automaton (DFA) A shown below. The DFA runs on the alphabet , and has the set of states , with being the st...

    Regular Expressions, Finite Automata and Regular Languages

  27. GATE CS 2023MSQ1 markEasy (estimate)

    GATE CS 2023, Q.24

    Which of the following statements is/are CORRECT?

    Turing Machines and Chomsky Hierarchy · Regular Expressions, Finite Automata and Regular Languages · Context-Free Grammars, Pushdown Automata and CFLs

  28. GATE CS 2023MCQ2 marksMedium (estimate)

    GATE CS 2023, Q.39

    Consider the context-free grammar below where and are non-ter...

    Context-Free Grammars, Pushdown Automata and CFLs

  29. GATE CS 2023MCQ2 marksMedium (estimate)

    GATE CS 2023, Q.40

    Consider the pushdown automaton (PDA) P below, which runs on the input alphabet , has stack alphabet , and has three states , with being...

    Context-Free Grammars, Pushdown Automata and CFLs

  30. GATE CS 2023NAT2 marksEasy (estimate)

    GATE CS 2023, Q.63

    Consider the language over the alphabet , given below: The minimum numb...

    Regular Expressions, Finite Automata and Regular Languages

  31. GATE CS 2022MCQ1 markMedium (estimate)

    GATE CS 2022, Q.12

    Which one of the following regular expressions correctly represents the language of the finite automaton given below? Finite automaton with start state q0 and two accepting stat...

    Regular Expressions, Finite Automata and Regular Languages

  32. GATE CS 2022MSQ1 markMedium (estimate)

    GATE CS 2022, Q.23

    Which of the following statements is/are TRUE?

    Decidability, Reducibility and Undecidability · Context-Free Grammars, Pushdown Automata and CFLs

  33. GATE CS 2022MSQ2 marksMedium (estimate)

    GATE CS 2022, Q.46

    Which of the following is/are undecidable?

    Decidability, Reducibility and Undecidability

  34. GATE CS 2022MSQ2 marksMedium (estimate)

    GATE CS 2022, Q.47

    Consider the following languages: Note that is the reversal of t...

    Regular Expressions, Finite Automata and Regular Languages · Context-Free Grammars, Pushdown Automata and CFLs

  35. GATE CS 2022MSQ2 marksMedium (estimate)

    GATE CS 2022, Q.48

    Consider the following languages: Which of the followi...

    Context-Free Grammars, Pushdown Automata and CFLs

  36. GATE CS 2021 Set 1MCQ1 markMedium (estimate)

    GATE CS 2021 Set 1, Q.11 (CS Q.1)

    Suppose that is a regular language and is a context-free language. Which one of the following languages is NOT necessarily context-free?

    Context-Free Grammars, Pushdown Automata and CFLs

  37. GATE CS 2021 Set 1MSQ1 markMedium (estimate)

    GATE CS 2021 Set 1, Q.22 (CS Q.12)

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

    Decidability, Reducibility and Undecidability

  38. GATE CS 2021 Set 1MCQ2 marksEasy (estimate)

    GATE CS 2021 Set 1, Q.48 (CS Q.38)

    Consider the following language. Which one of the following deterministic finite automata accepts ?

    Regular Expressions, Finite Automata and Regular Languages

  39. GATE CS 2021 Set 1MCQ2 marksMedium (estimate)

    GATE CS 2021 Set 1, Q.49 (CS Q.39)

    For a Turing machine , denotes an encoding of . Consider the following two languages.…

    Decidability, Reducibility and Undecidability

  40. GATE CS 2021 Set 1NAT2 marksHard (estimate)

    GATE CS 2021 Set 1, Q.61 (CS Q.51)

    In a pushdown automaton , a transition of the form, where , ,...

    Context-Free Grammars, Pushdown Automata and CFLs

  41. GATE CS 2021 Set 2MCQ1 markEasy (estimate)

    GATE CS 2021 Set 2, Q.19 (CS Q.9)

    Let be an arbitrary regular language accepted by a minimal DFA with states. Which one of the following languages must necessarily be accepted by a mi...

    Regular Expressions, Finite Automata and Regular Languages

  42. GATE CS 2021 Set 2MSQ1 markMedium (estimate)

    GATE CS 2021 Set 2, Q.22 (CS Q.12)

    Let be a regular language and be a context-free language. Which of the following languages is/are context-free?

    Context-Free Grammars, Pushdown Automata and CFLs

  43. GATE CS 2021 Set 2NAT1 markEasy (estimate)

    GATE CS 2021 Set 2, Q.27 (CS Q.17)

    Consider the following deterministic finite automaton (DFA). A 6-state deterministic finite automaton where start state q0 transitions on 0 to q1 and on 1 to q2; q1 transitions...

    Regular Expressions, Finite Automata and Regular Languages

  44. GATE CS 2021 Set 2MCQ2 marksMedium (estimate)

    GATE CS 2021 Set 2, Q.46 (CS Q.36)

    Consider the following two statements about regular languages: : Every infinite regular language contains an undecidable language as a subset. : Every finite language...

    Decidability, Reducibility and Undecidability

  45. GATE CS 2021 Set 2MSQ2 marksMedium (estimate)

    GATE CS 2021 Set 2, Q.51 (CS Q.41)

    For a string , we define to be the reverse of . For example, if then . Which of the following languages is/are context-free?

    Context-Free Grammars, Pushdown Automata and CFLs

  46. GATE CS 2021 Set 2MSQ2 marksMedium (estimate)

    GATE CS 2021 Set 2, Q.57 (CS Q.47)

    Which of the following regular expressions represent(s) the set of all binary numbers that are divisible by three? Assume that the string is divisible by three.

    Regular Expressions, Finite Automata and Regular Languages

  47. GATE CS 2020MCQ1 markMedium (estimate)

    GATE CS 2020, Q.17 (CS Q.7)

    Which one of the following regular expressions represents the set of all binary strings with an odd number of 1's?

    Regular Expressions, Finite Automata and Regular Languages

  48. GATE CS 2020MCQ1 markEasy (estimate)

    GATE CS 2020, Q.18 (CS Q.8)

    Consider the following statements. I. If is regular, then both and must be regular. II. The class of regular languages is closed under infinite union....

    Regular Expressions, Finite Automata and Regular Languages

  49. GATE CS 2020MCQ1 markMedium (estimate)

    GATE CS 2020, Q.20 (CS Q.10)

    Consider the language and the following statements. I. is deterministic context-free. II. is context-free but no...

    Context-Free Grammars, Pushdown Automata and CFLs · Parsing and Syntax Analysis (LL and LR)

  50. GATE CS 2020MCQ2 marksMedium (estimate)

    GATE CS 2020, Q.36 (CS Q.26)

    Which of the following languages are undecidable? Note that indicates encoding of the Turing machine .…

    Decidability, Reducibility and Undecidability

  51. GATE CS 2020MCQ2 marksHard (estimate)

    GATE CS 2020, Q.42 (CS Q.32)

    Consider the following languages. W...

    Regular Expressions, Finite Automata and Regular Languages · Context-Free Grammars, Pushdown Automata and CFLs

  52. GATE CS 2020NAT2 marksMedium (estimate)

    GATE CS 2020, Q.61 (CS Q.51)

    Consider the following language. The minimum number of stat...

    Regular Expressions, Finite Automata and Regular Languages

  53. GATE CS 2019MCQ1 markEasy (estimate)

    GATE CS 2019, Q.17 (CS Q.7)

    If is a regular language over , which one of the following languages is NOT regular?

    Regular Expressions, Finite Automata and Regular Languages

  54. GATE CS 2019MCQ1 markMedium (estimate)

    GATE CS 2019, Q.25 (CS Q.15)

    For , let us consider the regular language . Which one of the following can be a pumping len...

    Regular Expressions, Finite Automata and Regular Languages

  55. GATE CS 2019MCQ2 marksMedium (estimate)

    GATE CS 2019, Q.41 (CS Q.31)

    Which one of the following languages over is NOT context-free?

    Context-Free Grammars, Pushdown Automata and CFLs

  56. GATE CS 2019MCQ2 marksMedium (estimate)

    GATE CS 2019, Q.44 (CS Q.34)

    Consider the following sets: : Set of all recursively enumerable languages over the alphabet : Set of all syntactically valid C programs : Set of all l...

    Decidability, Reducibility and Undecidability

  57. GATE CS 2019NAT2 marksHard (estimate)

    GATE CS 2019, Q.58 (CS Q.48)

    Let be the set of all bijections from to , where denotes the identity function, i.e. . Let deno...

    Regular Expressions, Finite Automata and Regular Languages

  58. GATE CS 2018MCQ1 markEasy (estimate)

    GATE CS 2018, Q.16 (CS Q.6)

    Let be an NFA with states. Let be the number of states of a minimal DFA which is equivalent to . Which one of the following is necessarily true?

    Regular Expressions, Finite Automata and Regular Languages

  59. GATE CS 2018MCQ1 markEasy (estimate)

    GATE CS 2018, Q.17 (CS Q.7)

    The set of all recursively enumerable languages is

    Decidability, Reducibility and Undecidability

  60. GATE CS 2018MCQ2 marksMedium (estimate)

    GATE CS 2018, Q.45 (CS Q.35)

    Consider the following languages: I. II.…

    Context-Free Grammars, Pushdown Automata and CFLs

  61. GATE CS 2018MCQ2 marksMedium (estimate)

    GATE CS 2018, Q.46 (CS Q.36)

    Consider the following problems. denotes the language generated by a grammar . denotes the language accepted by a machine . (I) For an unrestricted grammar…

    Decidability, Reducibility and Undecidability

  62. GATE CS 2018NAT2 marksMedium (estimate)

    GATE CS 2018, Q.62 (CS Q.52)

    Given a language , define as follows: The order of a lang...

    Regular Expressions, Finite Automata and Regular Languages

  63. GATE CS 2017 Set 1MCQ1 markMedium (estimate)

    GATE CS 2017 Set 1, Q.10 (CS Q.10)

    Consider the following context-free grammar over the alphabet with as the start symbol: Which one of the...

    Context-Free Grammars, Pushdown Automata and CFLs

  64. GATE CS 2017 Set 1NAT1 markEasy (estimate)

    GATE CS 2017 Set 1, Q.22 (CS Q.22)

    Consider the language given by the regular expression over the alphabet . The smallest number of states needed in a deterministic finite-state au...

    Regular Expressions, Finite Automata and Regular Languages

  65. GATE CS 2017 Set 1MCQ2 marksEasy (estimate)

    GATE CS 2017 Set 1, Q.34 (CS Q.34)

    If is a grammar with productions where is the start variable, then which one of the following strings is not genera...

    Context-Free Grammars, Pushdown Automata and CFLs

  66. GATE CS 2017 Set 1MCQ2 marksEasy (estimate)

    GATE CS 2017 Set 1, Q.37 (CS Q.37)

    Consider the context-free grammars over the alphabet given below. and are non-terminals. …

    Context-Free Grammars, Pushdown Automata and CFLs · Regular Expressions, Finite Automata and Regular Languages

  67. GATE CS 2017 Set 1MCQ2 marksEasy (estimate)

    GATE CS 2017 Set 1, Q.38 (CS Q.38)

    Consider the following languages over the alphabet . Let and . Which of the...

    Context-Free Grammars, Pushdown Automata and CFLs

  68. GATE CS 2017 Set 1MCQ2 marksMedium (estimate)

    GATE CS 2017 Set 1, Q.39 (CS Q.39)

    Let and be finite alphabets and let # be a symbol outside both and . Let be a total function from to . We say is computable if there exists a T...

    Turing Machines and Chomsky Hierarchy

  69. GATE CS 2017 Set 2MCQ1 markEasy (estimate)

    GATE CS 2017 Set 2, Q.4 (CS Q.4)

    Let be any two context-free languages and be any regular language. Then which of the following is/are CORRECT? I. is context-free. II.…

    Context-Free Grammars, Pushdown Automata and CFLs

  70. GATE CS 2017 Set 2MCQ1 markEasy (estimate)

    GATE CS 2017 Set 2, Q.16 (CS Q.16)

    Identify the language generated by the following grammar, where is the start variable.…

    Context-Free Grammars, Pushdown Automata and CFLs

  71. GATE CS 2017 Set 2NAT1 markMedium (estimate)

    GATE CS 2017 Set 2, Q.25 (CS Q.25)

    The minimum possible number of states of a deterministic finite automaton that accepts the regular language…

    Regular Expressions, Finite Automata and Regular Languages

  72. GATE CS 2017 Set 2MCQ2 marksMedium (estimate)

    GATE CS 2017 Set 2, Q.39 (CS Q.39)

    Let denote the transition function and denote the extended transition function of the -NFA whose transition table is given below: | |...

    Regular Expressions, Finite Automata and Regular Languages

  73. GATE CS 2017 Set 2MCQ2 marksMedium (estimate)

    GATE CS 2017 Set 2, Q.40 (CS Q.40)

    Consider the following languages.…

    Context-Free Grammars, Pushdown Automata and CFLs · Turing Machines and Chomsky Hierarchy

  74. GATE CS 2017 Set 2MCQ2 marksEasy (estimate)

    GATE CS 2017 Set 2, Q.41 (CS Q.41)

    Let be the language represented by regular expression . Let be the language generated by a context free grammar . Let be the language accepted by a Tu...

    Decidability, Reducibility and Undecidability

  75. GATE CS 2016 Set 1MCQ1 markEasy (estimate)

    GATE CS 2016 Set 1, Q.26 (CS Q.16)

    Which of the following languages is generated by the given grammar?

    Context-Free Grammars, Pushdown Automata and CFLs

  76. GATE CS 2016 Set 1MCQ1 markMedium (estimate)

    GATE CS 2016 Set 1, Q.27 (CS Q.17)

    Which of the following decision problems are undecidable? I. Given NFAs and , is ? II. Given a CFG and a strin...

    Decidability, Reducibility and Undecidability

  77. GATE CS 2016 Set 1MCQ1 markEasy (estimate)

    GATE CS 2016 Set 1, Q.28 (CS Q.18)

    Which one of the following regular expressions represents the language: the set of all binary strings having two consecutive 0s and two consecutive 1s?

    Regular Expressions, Finite Automata and Regular Languages

  78. GATE CS 2016 Set 1MCQ2 marksMedium (estimate)

    GATE CS 2016 Set 1, Q.52 (CS Q.42)

    Consider the following context-free grammars: …

    Context-Free Grammars, Pushdown Automata and CFLs

  79. GATE CS 2016 Set 1MCQ2 marksMedium (estimate)

    GATE CS 2016 Set 1, Q.53 (CS Q.43)

    Consider the transition diagram of a PDA given below with input alphabet and stack alphabet . is the initial stack symbol. Let den...

    Context-Free Grammars, Pushdown Automata and CFLs

  80. GATE CS 2016 Set 1MCQ2 marksMedium (estimate)

    GATE CS 2016 Set 1, Q.54 (CS Q.44)

    Let be a recursive language and be a recursively enumerable but not recursive language. Let and be two languages such that reduces to , and ...

    Decidability, Reducibility and Undecidability

  81. GATE CS 2016 Set 2NAT1 markEasy (estimate)

    GATE CS 2016 Set 2, Q.26 (CS Q.16)

    The number of states in the minimum sized DFA that accepts the language defined by the regular expression is ________.

    Regular Expressions, Finite Automata and Regular Languages

  82. GATE CS 2016 Set 2MCQ1 markEasy (estimate)

    GATE CS 2016 Set 2, Q.27 (CS Q.17)

    Language is defined by the grammar: Language is defined by the grammar: Consider the following...

    Regular Expressions, Finite Automata and Regular Languages · Context-Free Grammars, Pushdown Automata and CFLs

  83. GATE CS 2016 Set 2MCQ1 markMedium (estimate)

    GATE CS 2016 Set 2, Q.28 (CS Q.18)

    Consider the following types of languages: : Regular, : Context-free, : Recursive, : Recursively enumerable. Which of the following is/are TRUE? I.…

    Regular Expressions, Finite Automata and Regular Languages

  84. GATE CS 2016 Set 2MCQ2 marksMedium (estimate)

    GATE CS 2016 Set 2, Q.52 (CS Q.42)

    Consider the following two statements: I. If all states of an NFA are accepting states then the language accepted by the NFA is . II. There exists a regular language…

    Regular Expressions, Finite Automata and Regular Languages

  85. GATE CS 2016 Set 2MCQ2 marksMedium (estimate)

    GATE CS 2016 Set 2, Q.53 (CS Q.43)

    Consider the following languages: Which one of the following is TRUE?

    Context-Free Grammars, Pushdown Automata and CFLs

  86. GATE CS 2016 Set 2MCQ2 marksMedium (estimate)

    GATE CS 2016 Set 2, Q.54 (CS Q.44)

    Consider the following languages. …

    Decidability, Reducibility and Undecidability · Turing Machines and Chomsky Hierarchy

  87. GATE CS 2015 Set 1MCQ1 markMedium (estimate)

    GATE CS 2015 Set 1, Q.13 (CS Q.3)

    For any two languages and such that is context-free and is recursively enumerable but not recursive, which of the following is/are necessarily true? I.…

    Decidability, Reducibility and Undecidability

  88. GATE CS 2015 Set 1MCQ2 marksMedium (estimate)

    GATE CS 2015 Set 1, Q.61 (CS Q.51)

    Consider the NPDA , where (as per usual convention) is the set of states...

    Context-Free Grammars, Pushdown Automata and CFLs

  89. GATE CS 2015 Set 1NAT2 marksEasy (estimate)

    GATE CS 2015 Set 1, Q.62 (CS Q.52)

    Consider the DFAs and given below. State transition diagrams for DFAs M and N, accepting strings ending in a and b respectively State transition diagrams of DFAs M and N...

    Regular Expressions, Finite Automata and Regular Languages

  90. GATE CS 2015 Set 2MCQ1 markMedium (estimate)

    GATE CS 2015 Set 2, Q.31 (CS Q.21)

    Consider the following statements: I. The complement of every Turing decidable language is Turing decidable. II. There exists some language which is in NP but is not Turing deci...

    Decidability, Reducibility and Undecidability

  91. GATE CS 2015 Set 2MCQ2 marksEasy (estimate)

    GATE CS 2015 Set 2, Q.45 (CS Q.35)

    Consider the alphabet , the null/empty string and the sets of strings , and generated by the corresponding non-terminals of a regula...

    Regular Expressions, Finite Automata and Regular Languages

  92. GATE CS 2015 Set 2MCQ2 marksMedium (estimate)

    GATE CS 2015 Set 2, Q.61 (CS Q.51)

    Which of the following languages is/are regular? , is the reverse of string …

    Regular Expressions, Finite Automata and Regular Languages

  93. GATE CS 2015 Set 2NAT2 marksEasy (estimate)

    GATE CS 2015 Set 2, Q.63 (CS Q.53)

    The number of states in the minimal deterministic finite automaton corresponding to the regular expression is _____.

    Regular Expressions, Finite Automata and Regular Languages

  94. GATE CS 2015 Set 3MCQ1 markMedium (estimate)

    GATE CS 2015 Set 3, Q.28 (CS Q.18)

    Let be the language represented by the regular expression where . What is the minimum number of states in a DFA that recognizes…

    Regular Expressions, Finite Automata and Regular Languages

  95. GATE CS 2015 Set 3MCQ2 marksMedium (estimate)

    GATE CS 2015 Set 3, Q.42 (CS Q.32)

    Which of the following languages are context-free?…

    Context-Free Grammars, Pushdown Automata and CFLs

  96. GATE CS 2014 Set 1MCQ1 markEasy (estimate)

    GATE CS 2014 Set 1, Q.25 (CS Q.15)

    Which one of the following is TRUE?

    Regular Expressions, Finite Automata and Regular Languages

  97. GATE CS 2014 Set 1MCQ1 markEasy (estimate)

    GATE CS 2014 Set 1, Q.26 (CS Q.16)

    Consider the finite automaton in the following figure. Non-deterministic finite automaton with four states q0, q1, q2, and q3 What is the set of reachable states for the input s...

    Regular Expressions, Finite Automata and Regular Languages

  98. GATE CS 2014 Set 1MCQ2 marksEasy (estimate)

    GATE CS 2014 Set 1, Q.45 (CS Q.35)

    Let be a language and be its complement. Which one of the following is NOT a viable possibility?

    Decidability, Reducibility and Undecidability

  99. GATE CS 2014 Set 1MCQ2 marksMedium (estimate)

    GATE CS 2014 Set 1, Q.46 (CS Q.36)

    Which of the regular expressions given below represent the following DFA? Deterministic finite automaton with two states accepting binary strings I) II)…

    Regular Expressions, Finite Automata and Regular Languages

  100. GATE CS 2014 Set 1MCQ2 marksMedium (estimate)

    GATE CS 2014 Set 1, Q.48 (CS Q.38)

    Suppose a polynomial time algorithm is discovered that correctly computes the largest clique in a given graph. In this scenario, which one of the following represents the correc...

    Turing Machines and Chomsky Hierarchy

  101. GATE CS 2014 Set 2MCQ1 markEasy (estimate)

    GATE CS 2014 Set 2, Q.25 (CS Q.15)

    If and , consider (I) is a regular language (II) Which one of...

    Regular Expressions, Finite Automata and Regular Languages

  102. GATE CS 2014 Set 2MCQ1 markMedium (estimate)

    GATE CS 2014 Set 2, Q.26 (CS Q.16)

    Let denotes that language is mapping reducible (also known as many-to-one reducible) to language . Which one of the following is FALSE?

    Decidability, Reducibility and Undecidability

  103. GATE CS 2014 Set 2MCQ2 marksMedium (estimate)

    GATE CS 2014 Set 2, Q.45 (CS Q.35)

    Let be the encoding of a Turing machine as a string over . Let…

    Decidability, Reducibility and Undecidability

  104. GATE CS 2014 Set 2MCQ2 marksHard (estimate)

    GATE CS 2014 Set 2, Q.46 (CS Q.36)

    Let . Let…

    Regular Expressions, Finite Automata and Regular Languages

  105. GATE CS 2014 Set 3NAT1 markMedium (estimate)

    GATE CS 2014 Set 3, Q.25 (CS Q.15)

    The length of the shortest string NOT in the language (over ) of the following regular expression is _____.

    Regular Expressions, Finite Automata and Regular Languages

  106. GATE CS 2014 Set 3MCQ1 markEasy (estimate)

    GATE CS 2014 Set 3, Q.26 (CS Q.16)

    Let be a finite non-empty alphabet and let be the power set of . Which one of the following is TRUE?

    Decidability, Reducibility and Undecidability

  107. GATE CS 2014 Set 3MCQ2 marksEasy (estimate)

    GATE CS 2014 Set 3, Q.45 (CS Q.35)

    Which one of the following problems is undecidable?

    Decidability, Reducibility and Undecidability

  108. GATE CS 2014 Set 3MCQ2 marksMedium (estimate)

    GATE CS 2014 Set 3, Q.46 (CS Q.36)

    Consider the following languages over the alphabet : …

    Context-Free Grammars, Pushdown Automata and CFLs

  109. GATE CS 2013MCQ1 markEasy (estimate)

    GATE CS 2013, Q.8 (CS Q.8)

    Consider the languages and . Which one of the following represents ?

    Regular Expressions, Finite Automata and Regular Languages

  110. GATE CS 2013MCQ1 markEasy (estimate)

    GATE CS 2013, Q.17 (CS Q.17)

    Which of the following statements is/are FALSE? 1. For every non-deterministic Turing machine, there exists an equivalent deterministic Turing machine. 2. Turing recognizable la...

    Turing Machines and Chomsky Hierarchy

  111. GATE CS 2013MCQ1 markEasy (estimate)

    GATE CS 2013, Q.18 (CS Q.18)

    Which of the following statements are TRUE? 1. The problem of determining whether there exists a cycle in an undirected graph is in P. 2. The problem of determining whether ther...

    Turing Machines and Chomsky Hierarchy

  112. GATE CS 2013MCQ2 marksMedium (estimate)

    GATE CS 2013, Q.32 (CS Q.32)

    Consider the following languages. Which one of the following statements is FALSE?

    Context-Free Grammars, Pushdown Automata and CFLs

  113. GATE CS 2013MCQ2 marksMedium (estimate)

    GATE CS 2013, Q.33 (CS Q.33)

    Consider the DFA A given below. Deterministic finite automaton with three states and transitions on symbols 0 and 1 Which of the following are FALSE? 1. Complement of is...

    Regular Expressions, Finite Automata and Regular Languages

  114. GATE CS 2013MCQ2 marksEasy (estimate)

    GATE CS 2013, Q.41 (CS Q.41)

    Which of the following is/are undecidable? 1. is a CFG. Is ? 2. is a CFG. Is ? 3. is a Turing machine. Is regular? 4. is a D...

    Decidability, Reducibility and Undecidability

  115. GATE CS 2012MCQ1 markEasy (estimate)

    GATE CS 2012, Q.12 (CS Q.12)

    What is the complement of the language accepted by the NFA shown below? Assume and is the empty string. Non-deterministic finite automaton with th...

    Regular Expressions, Finite Automata and Regular Languages

  116. GATE CS 2012MCQ1 markMedium (estimate)

    GATE CS 2012, Q.24 (CS Q.24)

    Which of the following problems are decidable? 1) Does a given program ever produce an output? 2) If is a context-free language, then, is also context-free? 3...

    Decidability, Reducibility and Undecidability · Regular Expressions, Finite Automata and Regular Languages

  117. GATE CS 2012MCQ1 markEasy (estimate)

    GATE CS 2012, Q.25 (CS Q.25)

    Given the language , which of the following strings are in ? 1) abaabaaabaa 2) aaaabaaaa 3) baaaaabaaaab 4) baaaaabaa

    Regular Expressions, Finite Automata and Regular Languages · Regular Expressions, Finite Automata and Regular Languages

  118. GATE CS 2012MCQ2 marksMedium (estimate)

    GATE CS 2012, Q.46 (CS Q.46)

    Consider the set of strings on {0, 1} in which, every substring of 3 symbols has at most two zeros. For example, 001110 and 011001 are in the language, but 100010 is not. All st...

    Regular Expressions, Finite Automata and Regular Languages · Regular Expressions, Finite Automata and Regular Languages

  119. GATE CS 2011MCQ1 markEasy (estimate)

    GATE CS 2011, Q.8 (CS Q.8)

    Which of the following pairs have DIFFERENT expressive power?

    Context-Free Grammars, Pushdown Automata and CFLs

  120. GATE CS 2011MCQ1 markEasy (estimate)

    GATE CS 2011, Q.24 (CS Q.24)

    Let be a regular language and be a context-free language such that . (For example, let be the language represented by the regular expression ...

    Regular Expressions, Finite Automata and Regular Languages

  121. GATE CS 2011MCQ2 marksEasy (estimate)

    GATE CS 2011, Q.26 (CS Q.26)

    Consider the languages , and as given below. …

    Context-Free Grammars, Pushdown Automata and CFLs

  122. GATE CS 2011MCQ2 marksMedium (estimate)

    GATE CS 2011, Q.42 (CS Q.42)

    Definition of a language with alphabet is given as following. What is the minimu...

    Regular Expressions, Finite Automata and Regular Languages

  123. GATE CS 2011MCQ2 marksMedium (estimate)

    GATE CS 2011, Q.45 (CS Q.45)

    A deterministic finite automaton (DFA) with alphabet is given below. Deterministic finite automaton D with start state p, state q, trap state r, and acce...

    Regular Expressions, Finite Automata and Regular Languages