Unit 1 - 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. A finite, non-empty set of symbols
B. An infinite set of characters
C. A set of all possible words over a language
D. A finite set of states

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. 1
B. Undefined
C. 0
D.

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. Intersection
B. Concatenation
C. Kleene Star
D. Union

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

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

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

A. A finite set of input symbols
B. The transition function
C. A finite set of states
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. Turing Machine
B. Pushdown Automaton
C. Linear Bounded Automaton
D. Finite Automaton

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

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

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 has a finite set of states
B. It has a designated start state
C. Multiple transitions from a single state on the same input symbol
D. It accepts formal languages

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

A. End of file
B. An error state
C. The empty string
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. No, because a DFA does not allow multiple transitions.
C. Yes, but only if the language is finite.
D. No, because they accept different classes of languages.

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

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

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

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

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

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

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

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

19 For a DFA, what is the value of ?

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

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. Is exactly equal to
B. Contains all states of
C. Contains at least one state in
D. Contains no states 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. Dead state (or Trap state)
C. Final state
D. Accepting 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. State Elimination Method
B. Subset Construction Algorithm
C. Myhill-Nerode Construction
D. Hopcroft's Algorithm

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. They have the same number of states
B. They have identical transition diagrams
C.
D. Both are deterministic

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 contains all the states 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 is the start state of the NDFA

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

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

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

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

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

A. Only the current input
B. Only the current state
C. Both the current state and the current input
D. The final 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 Maximization
B. DFA Minimization
C. Subset Construction
D. Thompson's 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 are non-final states
C. One is a final state and the other is a non-final state
D. Both have self-loops

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. States that are either both final or both non-final
C. The start state
D. Dead states

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

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

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

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

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. Kleene's Theorem
B. Arden's Theorem
C. Myhill-Nerode Theorem
D. Pumping Lemma

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.
C.
D. The set of all strings ending in 0

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

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

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

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

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. Swap the sets of final and non-final states
D. Convert it to an NDFA

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

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

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

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

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, finite automata can accept infinite languages like .
C. True, infinite languages require Turing Machines.
D. False, regular languages cannot be finite.