GATE CS Regular Expressions and Finite Automata questions
Practise Regular Expressions and Finite Automata questions for GATE CS. Explore official PYQs and original topic-wise quizzes, check answers and view available solutions. Free, no sign-in.
Subject, topic, year and type filter the full library. Match any choice within a filter, and all selected filter categories. Search, source and sort apply to this page.
20 on this page
Let be a nondeterministic finite automaton (NFA) with states over a finite alphabet. Which of the following options CANNOT be the number of states in the minimal deterministic finite automaton (DFA) that is equivalent to ?
Consider the following two finite automata and . Which of the following statements is/are true?
Consider the following deterministic finite automaton (DFA) defined over the alphabet, . Identify which of the following language(s) is/are accepted by the given DFA.
Consider a finite state machine (FSM) with one input and one output , represented by the given state transition table. The minimum number of states required to realize this FSM is _______. (Answer in integer). …
Let . For , let be the product of symbols in modulo 7. We take , where is the null string. For example, . Define …
Consider the -state . accepting the language shown below. For any string let be the number of in and be the number of 1 's in . Which of the following statements is/are FALSE?
Consider the following two regular expressions over the alphabet : The total number of strings of length less than or equal to , which are neither in nor in , is ________.
Which one of the following regular expressions is equivalent to the language accepted by the given below?
Let be the -state with -transitions shown in the diagram below. Which one of the following regular expressions represents the language accepted by ?
Let be the language represented by the regular expression and , where denotes the length of string . The number of strings in which are also in is _________.
Consider the Deterministic Finite-state Automaton () shown below. The runs on the alphabet , and has the set of states , with being the start state and being the only final state. Which one of the following regular expressions correctly describes the language accepted by …
Consider the following definition of a lexical token for an identifier in a programming language, using extended regular expressions: …
Consider the language over the alphabet , given below: The minimum number of states in a Deterministic Finite-State Automaton for is ____________.
Which one of the following regular expressions correctly represents the language of the finite automaton given below?
Consider the following language: Which one of the following deterministic finite automata accepts
Let be an arbitrary regular language accepted by a minimal with states. Which one of the following languages must necessarily be accepted by a minimal with states?
Consider the following deterministic finite automaton The number of strings of length accepted by the above automaton is ___________
Suppose we want to design a synchronous circuit that processes a string of ’s and ’s. Given a string, it produces another string by replacing the first in any subsequence of consecutive ’s by a . Consider the following example. …
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.
Which one of the following regular expressions represents the set of all binary strings with an odd number of s?
