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

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

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

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 the -closure of contains at least one final state.
B. If is the start state.
C. If has an outgoing -transition.
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. Myhill-Nerode Construction
B. Thompson's Construction
C. Arden's Method
D. Subset 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 is the subset containing only the start state.
B. It is an empty set.
C. It contains at least one accepting state of the NFA.
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 set of all final states.
B. The subset containing the start state.
C. The -closure of the start state.
D. The empty subset .

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

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

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

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

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

21 Thompson's Construction algorithm is utilized specifically to:

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

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

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

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

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

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

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 always have exactly one final (accepting) state.
C. They never contain -transitions.
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 identical start and final states.
B. They have isomorphic transition graphs.
C. They have the same number of states.
D. They accept exactly the same language.

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. No, the first one cannot generate the string 'aabb'.
B. Yes, but only for finite subsets.
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. Complementation ()
B. Infinite Union of arbitrary regular languages
C. Intersection ()
D. Finite Union ()

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

A. Both Complementation and Intersection.
B. Complementation only.
C. Intersection only.
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. Undecidable.
C. Regular.
D. Always finite.

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. Prove a language is strictly NOT regular.
C. Prove a language is regular.
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, because no regular language actually satisfies the Pumping Lemma.
C. No, it is only a necessary condition; some non-regular languages can also satisfy the Pumping Lemma.
D. Yes, provided the language is defined over a finite alphabet.

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

A. The Emptiness problem
B. The Equivalence problem
C. The Finiteness 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. Two given regular expressions denote the same language.
D. A specifically given string belongs to the 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 applying the Pumping Lemma.
D. By analyzing the regular expression for a Kleene star.

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

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

A. The language strictly obeys the Pumping Lemma.
B. The number of equivalence classes of the relation is finite.
C. The language can be accepted by an -NFA.
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 number of states in the minimal deterministic finite automaton (DFA) accepting .
B. The number of symbols in the alphabet .
C. The total number of states in any non-deterministic finite automaton (NFA) 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. Subset Construction
B. State Splitting
C. Equivalence Class Partitioning
D. Power Set Construction

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

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

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

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