Finite Automata · Theory of Computation
62 questions · asked in 27 of 27 years (2000–2026)
MCQ 45 · MSQ 5 · NAT 121-mark 34 · 2-mark 28
Questions 51–55 of 62
State X is the starting state of the automaton. Let the language accepted by the NFA with Y as the only accepting state be L1. Similarly, let the language accepted by the NFA with Z as the only accepting state be L2. Which of the following statements about L1 and L2 is TRUE?
Answer: (A)
(from X on 0, from Y on 0 by its self-loop, from Z on 1)
(from X on 0, from Y on 0, from Z on 1 by its self-loop)
The right-hand sides are the same, so . In words: after any input, the NFA can be in Y exactly when it can be in Z, because the same moves lead into both.
So the language accepted with Y as the only accepting state equals the one with Z as the only accepting state, . Neither contains the empty string, since X is not accepting. Proper inclusion in either direction is false.
Answer: (A)
Which one of the following is TRUE?
Answer: (B)
The machine reads the input from the LSB. In the first state it copies each as . On the first it outputs and moves to the second state. In the second state it complements every bit (, ) and stays there.
So the output keeps all bits up to and including the first from the LSB, and complements all bits after it. This is the rule for 2's complement.
. Check: 1's complement of is , and .
. Check: 1's complement of is , and .
. Check: 1's complement of is , and .
The other options fail on : the output is not its 1's complement , not the increment and not the decrement .
Note: the paper's figure labels both states . They are two different states: the first copies bits, the second complements them.
Answer: (B)
Answer: (D)
Correct Option: D
NFA and DFA have the same power, because every NFA can be converted into an equivalent DFA. But an NPDA can accept more languages than a DPDA.
The language recognized by M is :
Answer: (B)
So M accepts : at least one a, and every a is followed by at least two b's.
(A) is wrong: abbb is accepted, but its a is followed by three b's, not exactly two.
(C) is wrong: abba contains abb, but M rejects it (it ends in a non-final state).
(D) is wrong: ab has no aa, but M rejects it.
(B) describes the same strings. The only difference is that strings with no a (, b, bb, ...) satisfy (B) trivially, while M rejects them because its start state is not final. It is the closest option.
Answer: (B)
Answer: (A)
Columns, left to right, count the 1's mod 3: reading a 1 moves one step right, and the third 1 from the right column goes back to the left. Reading a 0 does not change the column.
Rows count the 0's mod 2: reading a 0 switches between the top row (even number of 0's) and the bottom row (odd number of 0's). Reading a 1 does not change the row.
The only accepting state is the start state, at the top left: number of 1's and number of 0's even (divisible by 2).
Check with strings: is accepted, so the 1's need not be even; this rules out (C) and (D), which need an even count of 1's and an odd or 3-divisible count of 0's. The empty string is accepted, with zero 1's and zero 0's; zero is not odd, so (B) and (C) are wrong. is accepted, so 0's need not be divisible by 3.
Answer: (A)
Keep practising