Unit 2 - Practice Quiz

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

1 Which of the following is a valid identity for Regular Expressions?

A.
B.
C.
D.

2 What is the equivalent regular expression for ?

A.
B.
C.
D.

3 What is the simplified form of ?

A.
B.
C.
D.

4 Which of the following regular expressions represents the language of all strings over ?

A.
B.
C.
D.

5 The regular expression for the language of strings of even length over is:

A.
B.
C.
D.

6 Which identity correctly describes the relationship between the Kleene star and the positive closure ?

A.
B.
C.
D.

7 What does the -closure of a state in an NFA represent?

A. The set of states reachable from using only -transitions.
B. The set of states reachable from using any transition.
C. The set of states that can reach using -transitions.
D. Only the state itself.

8 In terms of language recognition, how does the power of a Non-deterministic Finite Automaton with null moves (-NFA) compare to a standard DFA?

A. It can recognize context-free languages.
B. It is strictly more powerful than a DFA.
C. It has the exact same computational power as a DFA.
D. It is less powerful because -transitions create ambiguity.

9 Let denote the -closure of state . Is always true?

A. Yes, trivially by taking zero -transitions.
B. No, only if there is an explicit self-loop with .
C. Yes, but only if is an accepting state.
D. No, a state is never in its own -closure.

10 The transition function for an -NFA is defined as ?

A.
B.
C.
D.

11 When converting an -NFA to a standard NFA without -moves, what determines if a state becomes a final state?

A. If has an outgoing -transition.
B. If the -closure of contains at least one final state.
C. If is the start state.
D. If has no incoming transitions.

12 The standard algorithm used to convert a Non-deterministic Finite Automaton (NFA) to a Deterministic Finite Automaton (DFA) is called:

A. Thompson's Construction
B. Subset Construction
C. Arden's Method
D. Myhill-Nerode Construction

13 If an NFA has states, what is the maximum number of states the equivalent DFA could possibly have?

A.
B.
C.
D.

14 In the Subset Construction algorithm, a state in the constructed DFA is considered an accepting (final) state if:

A. It contains all the states of the NFA.
B. It contains at least one accepting state of the NFA.
C. It is the subset containing only the start state.
D. It is an empty set.

15 During the conversion of an NFA to a DFA, a "dead state" is often introduced. This dead state typically corresponds to which subset of NFA states?

A. The set of all final states.
B. The empty subset .
C. The subset containing the start state.
D. The -closure of the start state.

16 What is the primary practical reason for converting an NFA to a DFA?

A. To increase the theoretical set of recognizable languages.
B. To minimize the physical number of states.
C. To make the automaton deterministic for straightforward implementation in software or hardware.
D. To allow the automaton to handle context-sensitive languages.

17 Arden's Theorem is primarily used in automation theory for:

A. Converting a Regular Expression to an NFA.
B. Minimizing the number of states in a DFA.
C. Converting a Transition System (DFA/NFA) into a Regular Expression.
D. Proving that a particular language is not regular.

18 According to Arden's Theorem, if , and does not contain , then the unique solution for is:

A.
B.
C.
D.

19 Solve the state equation using Arden's Theorem.

A.
B.
C.
D.

20 What specific condition must be satisfied for Arden's Theorem () to guarantee a unique solution?

A. The language must be empty.
B. The language must not contain .
C. The language must not contain .
D. The language must be infinite.

21 Thompson's Construction algorithm is utilized specifically to:

A. Convert an NFA to a DFA.
B. Find the minimal equivalent DFA.
C. Construct an -NFA equivalent to a given Regular Expression.
D. Prove the equivalence of two regular languages.

22 In Thompson's Construction, the base case for recognizing a single alphabet symbol produces an NFA with exactly how many states?

A. 1
B. 2
C. 3
D. 4

23 When applying Thompson's Construction for the union of two regular expressions (), how many completely new states are introduced?

A. 0
B. 1
C. 2
D. 4

24 When applying Thompson's Construction for the Kleene Star operation , how many new -transitions are added?

A. 1
B. 2
C. 3
D. 4

25 Which of the following properties is universally true for automata generated directly by Thompson's Construction?

A. They are always minimal DFAs.
B. They never contain -transitions.
C. They always have exactly one final (accepting) state.
D. They allow single transitions mapping to strings of length > 1.

26 Two finite automata are formally defined to be equivalent if and only if:

A. They have the same number of states.
B. They have isomorphic transition graphs.
C. They accept exactly the same language.
D. They have identical start and final states.

27 A standard, definitive method to test the equivalence of two DFAs, and , is to:

A. Count and compare their number of states.
B. Minimize both DFAs and check if the resulting graphs are isomorphic.
C. Check if their start states have similar outgoing transitions.
D. Run them on an infinite string.

28 Are the regular expressions and equivalent?

A. Yes, they generate the exact same language.
B. No, the second one cannot generate the string 'aba'.
C. No, the first one cannot generate the string 'aabb'.
D. Yes, but only for finite subsets.

29 Which of the following regular expressions is NOT equivalent to ?

A.
B.
C.
D.

30 If and are regular languages, which of the following operations is NOT guaranteed to produce a regular language?

A. Finite Union ()
B. Intersection ()
C. Infinite Union of arbitrary regular languages
D. Complementation ()

31 Regular languages are mathematically closed under which of the following operations?

A. Complementation only.
B. Intersection only.
C. Both Complementation and Intersection.
D. Neither Complementation nor Intersection.

32 The complement of a regular language over an alphabet is represented as:

A.
B.
C.
D.

33 If is a regular language, then the language (the reversal of all strings in ) is:

A. Context-Free but strictly non-regular.
B. Regular.
C. Always finite.
D. Undecidable.

34 The primary purpose of the Pumping Lemma for Regular Sets in automata theory is to:

A. Prove a language is regular.
B. Prove a language is strictly NOT regular.
C. Convert an NFA to a minimal DFA.
D. Construct a regular expression from a state machine.

35 In the Pumping Lemma for regular sets, an arbitrary string (where ) is divided into three parts: . Which part represents the "pumpable" substring?

A.
B.
C.
D.

36 According to the conditions of the Pumping Lemma for the decomposition , which strict requirement must hold true?

A.
B.
C.
D.

37 Let be the pumping length. According to the Pumping Lemma, the length of the prefix must satisfy:

A.
B.
C.
D.

38 Which of the following classical languages is typically proven to be NON-regular using the Pumping Lemma?

A.
B.
C.
D.

39 Is the Pumping Lemma a sufficient condition to definitively prove that a language IS regular?

A. Yes, if a language satisfies the Pumping Lemma, it is guaranteed to be regular.
B. No, it is only a necessary condition; some non-regular languages can also satisfy the Pumping Lemma.
C. Yes, provided the language is defined over a finite alphabet.
D. No, because no regular language actually satisfies the Pumping Lemma.

40 Which of the following decision properties regarding regular languages is NOT decidable?

A. The Emptiness problem
B. The Finiteness problem
C. The Equivalence problem
D. None of the above (they are all decidable)

41 The Membership Problem for a regular language essentially asks whether:

A. The language contains the empty string .
B. The language is finite or infinite.
C. A specifically given string belongs to the language .
D. Two given regular expressions denote the same language.

42 How can the Emptiness problem (?) for a regular language represented by a DFA be decided algorithmically?

A. By checking if the start state is an accepting state.
B. By performing a graph search to check if ANY final state is reachable from the start state.
C. By analyzing the regular expression for a Kleene star.
D. By applying the Pumping Lemma.

43 The Finiteness problem (is finite or infinite?) for a DFA can be decided by:

A. Checking if there is a cycle on a path from the start state to any final state.
B. Checking if the start state is also a final state.
C. Seeing if the equivalent regular expression contains a union operator.
D. Checking if the number of final states is greater than 1.

44 The foundational Myhill-Nerode Theorem states that a language is regular if and only if:

A. The number of equivalence classes of the relation is finite.
B. The language can be accepted by an -NFA.
C. The language strictly obeys the Pumping Lemma.
D. It can be generated by a Context-Free Grammar.

45 In the context of the Myhill-Nerode Theorem, the equivalence relation defined over strings is:

A. Left-invariant
B. Right-invariant
C. Symmetric but not transitive
D. Reflexive but not symmetric

46 According to the Myhill-Nerode Theorem, the number of equivalence classes of the relation for a regular language corresponds exactly to:

A. The total number of states in any non-deterministic finite automaton (NFA) accepting .
B. The number of symbols in the alphabet .
C. The number of states in the minimal deterministic finite automaton (DFA) accepting .
D. The pumping length of the language.

47 In DFA minimization algorithms based on Myhill-Nerode, two states and are considered distinguishable if:

A. There exists a string such that exactly one of or ends in an accepting state.
B. They have different incoming transitions from the start state.
C. They both transition to a dead state on some specific input.
D. They belong to the exact same equivalence class.

48 Which mathematical approach is structurally used to combine indistinguishable states and find the minimal DFA?

A. State Splitting
B. Subset Construction
C. Equivalence Class Partitioning
D. Power Set Construction

49 Which of the following is an immediate practical application of the Myhill-Nerode Theorem?

A. Converting an NFA rapidly into a DFA.
B. Finding the shortest path string in a DFA graph.
C. Proving that an ambiguous grammar is minimal.
D. Finding the unique, minimal DFA for a given regular language.

50 A regular language is known to be mathematically closed under "homomorphism". What does this operation entail?

A. Replacing individual symbols of the alphabet uniformly with specific strings.
B. Reversing all strings in the regular language.
C. Extracting all valid subsets of the language.
D. Converting a standard DFA into a probabilistic NFA.