Questions

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Other topics of Theory of Computation