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 that can reach using -transitions.
B. Only the state itself.
C. The set of states reachable from using any transition.
D. The set of states reachable from using only -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 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. No, a state is never in its own -closure.
B. Yes, trivially by taking zero -transitions.
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 has an outgoing -transition.
B. If has no incoming transitions.
C. If the -closure of contains at least one final state.
D. If is the start state.

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

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

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

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. Converting a Regular Expression to an NFA.
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 infinite.
B. The language must not contain .
C. The language must not contain .
D. The language must be empty.

21 Thompson's Construction algorithm is utilized specifically to:

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

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

A. 2
B. 1
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. 2
B. 0
C. 4
D. 1

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

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

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

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

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

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

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

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

28 Are the regular expressions and equivalent?

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

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

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

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

A. Construct a regular expression from a state machine.
B. Convert an NFA to a minimal DFA.
C. Prove a language is regular.
D. Prove a language is strictly NOT 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. No, because no regular language actually satisfies the Pumping Lemma.
C. Yes, if a language satisfies the Pumping Lemma, it is guaranteed to be regular.
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 Finiteness problem
B. The Emptiness 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. The language contains the empty string .
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 applying the Pumping Lemma.
B. By checking if the start state is an accepting state.
C. By analyzing the regular expression for a Kleene star.
D. By performing a graph search to check if ANY final state is reachable from the start state.

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

A. Checking if the start state is also a 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 there is a cycle on a path from the start state to any final state.

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. It can be generated by a Context-Free Grammar.
C. The language strictly obeys the Pumping Lemma.
D. The number of equivalence classes of the relation is finite.

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

A. Right-invariant
B. Left-invariant
C. Reflexive but not symmetric
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 total number of states in any non-deterministic finite automaton (NFA) accepting .
B. The number of states in the minimal deterministic finite automaton (DFA) accepting .
C. The number of symbols in the alphabet .
D. The pumping length of the language.

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. There exists a string such that exactly one of or ends in an accepting state.
C. They belong to the exact same equivalence class.
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. Equivalence Class Partitioning
B. Power Set Construction
C. Subset Construction
D. State Splitting

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

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

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.