All mock tests are FREE till 31 December — register to save your progress
Paper 2 CS · UNIT 08 · MOCK TEST

Mock 3 – Finite Automata & Regular Languages (Part 3)

Unit 8: Theory of Computation and Compilers · 23 questions · about 27 minutes. Press End Mock any time to see your score and the correct answers.

All 10 topic-wise mocks in this unit
0 / 23 answered 00:00
Q1.

Which of the following statement is correct?

Q2.

In Pumping Lemma for context-free languages, to say a language is satisfying pumping lemma, vx what is the minimum length of ' ' together, if you consider the string as 'uvwxy'?

Q3.

What is the minimum and maximum number of initial, dead, unreachable and final states in a n valid ' ' state finite automaton, where the φ language accepted is not ' '?

Q4.

Which of the following finite automata recognize L = {a, b}*? (Transition tables A–D are shown; in each, the start state q0 is accepting.)

Q5.

Match List I with List II

Figure
Q6.

In Pumping Lemma for regular languages, to say a language is satistying pumping lemma, what is the mınımum length of ' y ' if you consider the string as ' x y z '?

Q7.

In the ε-NFA M = ({q0, q1, q2, q3}, {a}, δ, q0, {q3}) with δ: q0 –ε→ q1, q1 –ε→ q2, q2 –a→ {q2, q3}, and no other moves, what is the minimum length of a string that reaches the final state?

Q8.

Which of the following are correct for regular expressions? a. ∅ + L = L + ∅ = L b. εL = Lε = L c. ∅L = L∅ = ∅ d. ∅L = L∅ = L

Q9.

Consider the NPDA ({q0, q1, qf}, {a, b}, {1, z}, δ, q0, z, {qf}) with δ(q0, λ, z) = {(qf, z)}, δ(q0, a, z) = {(q1, 11z)}, δ(q1, a, 1) = {(q1, 111)}, δ(q1, b, 1) = {(q1, λ)}, δ(q1, λ, z) = {(qf, z)}. Which language does it accept?

Q10.

Which of the following languages are not regular? A. L = {(01)ⁿ0ᵏ | n > k, k ≥ 0} B. L = {cⁿbᵏaⁿ⁺ᵏ | n ≥ 0, k ≥ 0} C. L = {0ⁿ1ᵏ | n ≠ k}

Q11.

What is the minimum number of states required to the finite automaton equivalent to the transition diagram given below?

Figure
Q12.

Find the regular expression for the language accepted by the automata given below.

Figure
Q13.

What language is accepted by the PDA M = ({q0, q1, q2}, {a, b}, {a, b, z}, δ, q0, z, {q2}) where in q0 every input symbol is pushed, δ(q0, λ, a) = {(q1, a)}, δ(q0, λ, b) = {(q1, b)}, in q1 a matches a and b matches b (pop), and δ(q1, λ, z) = {(q2, z)}?

Q14.

Let 1 and 2 be languages over represented by the regular expressions (a∗ + b)∗ (a + b)∗ and respectively. Which of the following is true with respect to the two languages?

Q15.

Consider L1 = {a^(z²) | z is an integer}, L2 = {a^(2z) | z ≥ 0}, L3 = {ωω | ω ∈ {a, b}*}. Which of the languages is (are) regular?

Q16.

Consider the regular expressions r = a(b + a)*, s = a(a + b)⁺, t = aa*b. Which relation holds between the languages they generate?

Q17.

On translating the expression given below into quadruple representation, how many operations are required? (i*j)+(e+f)*(a*b+c)

Q18.

How many states are there in a minimum state automata equivalent to regular expression given below? a * b(a + b) Regular expression is

Q19.

Let r = a(a + b)*, s = aa*b and t = a*b be three regular expressions. Consider:

(i) L(s) ⊆ L(r) and L(s) ⊆ L(t)

(ii) L(r) ⊆ L(s) and L(s) ⊆ L(t)

Q20.

Consider the language L = {a^(nk) | k > 0}, where n is a fixed non-negative integer. The minimum number of states of a finite automaton accepting L is

Q21.

Consider the languages L₁ = {x | for some y with |y| = 2|x|, xy ∈ L} and L₂ = {x | for some y with |x| = |y|, xy ∈ L}, where L is a regular language. Which one is correct?

Q22.

Two finite state machines are said to be equivalent if they :

Q23.

The finite state machine given in figure below recognizes :

Figure