Automata
Automata
A) 0,1,00,01,10,11
B) 00,0,11,1,10
C) ϵ,1,0,11,10,01,00
D) ϵ,0,1,00,01,10,11
A) abb
B) aabb
C) aaaabbbb
D) Both B and C
A) A finite language
B) The language Σ∗
C) The concatenation of Σ
D) The reverse of Σ
A) {a^nb^m: n, m≥0}
B) {a^nb^n: n≥0}
C) {a^n: n≥0}
D) {b^n: n≥0}
13.Which of the following strings is accepted by the languageL = {a^n b^n c^n : n≥0}?
A) aabbcc
B) abcabc
C) aaabbbccc
D) Both A and C
15. Which of the following is the correct description of a finite automaton's transition
function?
A) δ:Q→Σ
B) δ:Q×Σ→Q
C) δ:Q→Σ×Q
D) δ:Σ→Q
16. Which of the following is true about nondeterministic finite automata (NFA)?
17. Which regular expression corresponds to the language "all strings over {0,1} that
start with 1"?
A) 1∗
B) 1(0∪1)∗
C) 0∗ 1
D) 1(0∗ 1)∗
18. Which of the following is true for deterministic finite automata (DFA)?
A) {0^n:n≥0}
B) {0^n1^n:n≥0}
C) {0,1}∗
D) {w:w starts and ends with 0}
A) Union
B) Concatenation
C) Kleene Star
D) All of the above
25)What is the regular expression for the set {ab, abab, ababab, ...}?
A. (ab)*
B. ab+
C. ab(ab)*
D. (ab)+
Answer: D
Answer: B
Answer: A
28)What is the regular expression for strings starting with 0 and ending with 1
over {0,1}?
A. (0+1)*
B. 0(0+1)*1
C. 01*
D. 0*1
Answer: B
29)Which of the following sets does the regular expression a(aa)+ represent?
A. {a, aaa, aaaaa, ...}
B. {aa, aaaa, aaaaaa, ...}
C. {a, aa, aaa, ...}
D. None of the above
Answer: A
Answer: C
Answer: C
Answer: A
Answer: D
Answer: B
Answer: B
Answer: B
Answer: B
Answer: A
Answer: B
Answer: C
Answer: C
Answer: A
Answer: B
Answer: B
Answer: B
Answer: B
Answer: D
Answer: C
Answer: B
51)Which of the following is true about the Pumping Lemma for regular
languages?
A. It is used to prove that a language is regular.
B. It states that regular languages can always be pumped.
C. It helps to prove that a language is not regular.
D. It only applies to context-free languages.
Answer: C
52))In the context of the Pumping Lemma, what condition must the string y
satisfy in the decomposition w=xyz?
A. y must be empty.
B. ∣y∣≥1
C. ∣xy∣≥p
D. ∣yz∣≤p
Answer: B