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 any transition.
B. The set of states reachable from using only -transitions.
C. Only the state itself.
D. The set of states that can reach using -transitions.

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 is less powerful because -transitions create ambiguity.
B. It has the exact same computational power as a DFA.
C. It is strictly more powerful than a DFA.
D. It can recognize context-free languages.

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

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

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 is the start state.
B. If the -closure of contains at least one final state.
C. If has no incoming transitions.
D. If has an outgoing -transition.

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

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

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 at least one accepting state of the NFA.
B. It is an empty set.
C. It is the subset containing only the start state.
D. It contains all the states of the NFA.

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 empty subset .
B. The subset containing the start state.
C. The set of all final states.
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 allow the automaton to handle context-sensitive languages.
C. To make the automaton deterministic for straightforward implementation in software or hardware.
D. To minimize the physical number of states.

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

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

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 not contain .
B. The language must be infinite.
C. The language must be empty.
D. The language must not contain .

21 Thompson's Construction algorithm is utilized specifically to:

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

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. 4
C. 2
D. 3

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. 4
D. 2

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

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

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

A. They never contain -transitions.
B. They always have exactly one final (accepting) state.
C. They are always minimal DFAs.
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 isomorphic transition graphs.
B. They accept exactly the same language.
C. They have identical start and final states.
D. They have the same number of 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, but only for finite subsets.
B. No, the first one cannot generate the string 'aabb'.
C. No, the second one cannot generate the string 'aba'.
D. Yes, they generate the exact same language.

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. Infinite Union of arbitrary regular languages
B. Finite Union ()
C. Intersection ()
D. Complementation ()

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

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

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. Always finite.
B. Undecidable.
C. Context-Free but strictly non-regular.
D. Regular.

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

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

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. No, it is only a necessary condition; some non-regular languages can also satisfy the Pumping Lemma.
B. Yes, provided the language is defined over a finite alphabet.
C. Yes, if a language satisfies the Pumping Lemma, it is guaranteed to be regular.
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. None of the above (they are all decidable)
D. The Equivalence problem

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

A. The language is finite or infinite.
B. A specifically given string belongs to the language .
C. The language contains the empty string .
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 performing a graph search to check if ANY final state is reachable from the start state.
B. By applying the Pumping Lemma.
C. By analyzing the regular expression for a Kleene star.
D. By checking if the start state is an accepting state.

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 number of final states is greater than 1.
C. Checking if the start state is also a final state.
D. Seeing if the equivalent regular expression contains a union operator.

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

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

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

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

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

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

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

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

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

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

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

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

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

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