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

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

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. The set of final states
B. The transition function
C. A finite set of states
D. A finite set of input symbols

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. Pushdown Automaton
B. Finite Automaton
C. Turing Machine
D. Linear Bounded Automaton

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

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

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

A. An error state
B. End of file
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. No, because they accept different classes of languages.
D. Yes, but only if the language is finite.

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

A. DFA is more powerful than NDFA
B. They have equal computational power
C. NDFA is more powerful than DFA
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. Transitions
C. Final languages
D. States

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

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

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

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

19 For a DFA, what is the value of ?

A. An empty set
B.
C.
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 no states in
C. Contains all states of
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. Accepting state
B. Final state
C. Start 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. Looped infinitely
C. Passed to an NDFA
D. Rejected

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

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

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

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 only final states of the NDFA
B. It contains all the states of the NDFA
C. It is the start state of the NDFA
D. It contains at least one final 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 final states reachable from
C. The set of all states reachable from without consuming any input symbol (including itself)
D. The state only

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

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

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

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

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. Neither machine can be converted into the other
B. Moore machines have more computational power than Mealy machines
C. Mealy machines have more computational power than Moore machines
D. For every Moore machine, there is an equivalent Mealy machine and vice versa

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. Thompson's Construction
B. Subset Construction
C. DFA Minimization
D. DFA Maximization

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

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

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

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

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. Always containing a single final state
B. Dependent on the initial NDFA
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. Kleene's Theorem
B. Pumping Lemma
C. Arden's Theorem
D. Myhill-Nerode 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.
C.
D. The set of all strings ending in 0

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

A. Regular Languages
B. Context-Sensitive Languages
C. Context-Free 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. Convert it to an NDFA
C. Change the start state to a final state
D. Swap the sets of final and non-final states

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

A. Can represent strings requiring an unbounded memory (like for )
B. Closed under intersection
C. Closed under union
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. The empty language
B. All strings of length 1
C.
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. True, infinite languages require Turing Machines.
C. False, finite automata can accept infinite languages like .
D. False, regular languages cannot be finite.