Unit 1: FINITE AUTOMATA - Practice Quiz

CSE322 50 Questions
0 Correct 0 Wrong 50 Left
0/50

1 What is an alphabet in the context of Automata Theory?

A. An infinite set of characters
B. A finite set of states
C. A set of all possible words over a language
D. A finite, non-empty set of symbols

2 Which of the following represents the set of all possible strings over an alphabet , including the empty string?

A.
B.
C.
D.

3 What is the length of the empty string, denoted by ?

A.
B. 0
C. Undefined
D. 1

4 If an alphabet , which of the following correctly represents ?

A.
B.
C.
D.

5 The operation of appending one string to the end of another string is known as?

A. Kleene Star
B. Union
C. Intersection
D. Concatenation

6 A Deterministic Finite Automaton (DFA) is mathematically defined as a?

A. 6-tuple
B. 7-tuple
C. 5-tuple
D. 4-tuple

7 In the formal definition of a DFA, , what does represent?

A. A finite set of states
B. The transition function
C. A finite set of input symbols
D. The set of final states

8 In a DFA, what is the mathematical mapping of the transition function ?

A.
B.
C.
D.

9 Which of the following computational models requires no auxiliary memory (like a stack or tape)?

A. Linear Bounded Automaton
B. Pushdown Automaton
C. Turing Machine
D. Finite Automaton

10 In a DFA, for a given state and a specific input symbol, how many transitions are possible?

A. Exactly one
B. More than one
C. Zero or one
D. Exactly zero

11 In a Non-deterministic Finite Automaton (NDFA), the transition function maps to?

A.
B.
C.
D.

12 Which of the following features is permitted in an NDFA but NOT in a standard DFA?

A. It accepts formal languages
B. Multiple transitions from a single state on the same input symbol
C. It has a finite set of states
D. It has a designated start state

13 An -NFA allows transitions without reading any input symbol. What does represent in this context?

A. An error state
B. The empty string
C. End of file
D. A wild-card character

14 Is every DFA also an NDFA?

A. Yes, a DFA is a special case of an NDFA where each state has exactly one transition per input symbol.
B. Yes, but only if the language is finite.
C. No, because they accept different classes of languages.
D. No, because a DFA does not allow multiple transitions.

15 Regarding their computational power (the ability to recognize languages), how do DFA and NDFA compare?

A. NDFA is more powerful than DFA
B. They have equal computational power
C. It depends on the size of the alphabet
D. DFA is more powerful than NDFA

16 In a transition diagram (graph) of a Finite Automaton, what do the vertices (nodes) represent?

A. States
B. Input symbols
C. Transitions
D. Final languages

17 How is the start state typically denoted in a transition diagram?

A. By an incoming arrow not originating from any other state
B. By a shaded node
C. By a dotted circle
D. By a double circle

18 What does the extended transition function compute in a DFA?

A. The length of the string
B. The next state after reading a single symbol
C. The final state reached from state after reading the entire string
D. The set of all possible initial states

19 For a DFA, what is the value of ?

A. The final state
B.
C. An empty set
D.

20 For a DFA, which equation correctly represents the recursive definition of the extended transition function for a string (where and )?

A.
B.
C.
D.

21 A string is strictly accepted by a DFA if and only if?

A.
B.
C.
D.

22 The language accepted by a DFA , denoted as , is formally defined as?

A.
B.
C.
D.

23 In an NDFA, a string is considered accepted if the set of states reached after reading from the start state?

A. Contains all states of
B. Is exactly equal to
C. Contains no states in
D. Contains at least one state in

24 A state from which the machine cannot reach any final state for any sequence of input symbols is known as a?

A. Start state
B. Accepting state
C. Final state
D. Dead state (or Trap state)

25 If a DFA processes an input string completely and halts in a state that does not belong to , the string is?

A. Accepted
B. Rejected
C. Looped infinitely
D. Passed to an NDFA

26 The standard algorithm used to convert an NDFA to an equivalent DFA is known as?

A. Hopcroft's Algorithm
B. State Elimination Method
C. Subset Construction Algorithm
D. Myhill-Nerode Construction

27 If an NDFA has exactly states, what is the theoretical maximum number of states in its equivalent constructed DFA?

A.
B.
C.
D.

28 Two finite automata and are strictly said to be equivalent if?

A.
B. They have the same number of states
C. Both are deterministic
D. They have identical transition diagrams

29 During the conversion from NDFA to DFA using the Subset Construction algorithm, a state in the resulting DFA is marked as a final state if?

A. It is the start state of the NDFA
B. It contains at least one final state of the NDFA
C. It contains only final states of the NDFA
D. It contains all the states of the NDFA

30 To process strings in an -NFA, one uses the -closure. What is the -closure of a state ?

A. The state only
B. The set of final states reachable from
C. The set of all states reachable from without consuming any input symbol (including itself)
D. The set of all states reachable from on a specific input symbol

31 A Moore machine is a finite state machine with output. In a Moore machine, the output depends on?

A. Only the current state
B. The initial state
C. Only the current input
D. Both the current state and the current input

32 A Mealy machine is a finite state machine with output. In a Mealy machine, the output depends on?

A. Both the current state and the current input
B. Only the current input
C. The final state
D. Only the current state

33 In a Moore machine, if an input string of length is processed, what is the length of the generated output string?

A.
B.
C.
D.

34 In a Mealy machine, if an input string of length is processed, what is the length of the generated output string?

A.
B.
C.
D.

35 Let be the output alphabet. In the 6-tuple formal definition of a Moore machine, the output function maps from?

A.
B.
C.
D.

36 Let be the output alphabet. In the 6-tuple formal definition of a Mealy machine, the output function maps from?

A.
B.
C.
D.

37 Which of the following statements about Mealy and Moore machines is TRUE?

A. Mealy machines have more computational power than Moore machines
B. Moore machines have more computational power than Mealy machines
C. For every Moore machine, there is an equivalent Mealy machine and vice versa
D. Neither machine can be converted into the other

38 The process of reducing the number of states of a DFA to construct an equivalent DFA with the fewest possible states is called?

A. DFA Minimization
B. DFA Maximization
C. Thompson's Construction
D. Subset Construction

39 In the table-filling algorithm for DFA minimization, two states and are initially marked as distinguishable (0-distinguishable) if?

A. Both are final states
B. Both have self-loops
C. One is a final state and the other is a non-final state
D. Both are non-final states

40 Two states and in a DFA are said to be equivalent if, for every string , transitions from and on lead to?

A. The exact same state
B. Dead states
C. States that are either both final or both non-final
D. The start state

41 What is the first necessary step before applying a DFA minimization algorithm?

A. Making all states accepting
B. Removing all unreachable states from the start state
C. Converting the DFA to an NDFA
D. Removing all final states

42 The minimum state DFA recognizing a given regular language is?

A. Dependent on the initial NDFA
B. Always containing a single final state
C. Never unique
D. Unique up to isomorphism (renaming of states)

43 Which theorem provides the mathematical foundation for DFA minimization and states that a language is regular if and only if it has a finite number of equivalence classes?

A. Pumping Lemma
B. Myhill-Nerode Theorem
C. Kleene's Theorem
D. Arden's Theorem

44 If a minimized DFA for a language over has exactly one state which is both the initial and the final state, what is ?

A.
B. The set of all strings ending in 0
C.
D.

45 The class of languages natively accepted by Finite Automata is called?

A. Regular Languages
B. Context-Free Languages
C. Context-Sensitive Languages
D. Recursively Enumerable Languages

46 If a language is accepted by a DFA, then its complement is?

A. Undecidable
B. Context-Free but not Regular
C. Always Regular
D. Never Regular

47 How can one easily construct a DFA for the complement language given a complete DFA for ?

A. Reverse all transition arrows
B. Change the start state to a final state
C. Convert it to an NDFA
D. Swap the sets of final and non-final states

48 Which of the following is NOT a true property of regular languages?

A. Closed under union
B. Can represent strings requiring an unbounded memory (like for )
C. Closed under intersection
D. Accepted by a Finite Automaton

49 Consider a structurally valid finite automaton with states and transitions, but possessing no final states. What language does it accept?

A.
B. All strings of length 1
C. The empty language
D.

50 A regular language must consist of a finite number of strings. Is this statement true or false?

A. True, because finite automata have finite memory.
B. False, regular languages cannot be finite.
C. True, infinite languages require Turing Machines.
D. False, finite automata can accept infinite languages like .