Introduction
15 questions across Phase 4.
Practice questions
- MCQ · 1 mark
δ(q, a) = (p, b, L) means:
- read b, write a, move left
- read a, write b, move left, go to p
- read a, push b
- read a, move left without writing
- MSQ · 2 marks
On a given input, a TM may:
- accept
- reject
- loop
- accept and later reject
- NAT · 1 mark
tmInc on 1111: number of symbols in the output (no leading blanks)?
Write your answer before opening the key.
- MCQ · 2 marks
The one-tape cross-off TM for aⁿbⁿcⁿ runs in:
- O(n)
- O(n²)
- O(n³)
- O(2ⁿ)
- MSQ · 2 marks
Which have exactly the power of a TM?
- nondeterministic TM
- TM with a two-way infinite tape
- PDA with two stacks
- LBA
- MCQ · 1 mark
Which is a CSL but not a CFL?
- aⁿbⁿ
- wwᴿ
- aⁿbⁿcⁿ
- (ab)*
- MCQ · 1 mark
A language is recursive iff:
- some TM accepts it
- some TM decides it (halts on all inputs)
- it is context-free
- it is infinite
- MSQ · 2 marks
Which inclusions are strict?
- DCFL ⊂ CFL
- CFL ⊂ CSL
- CSL ⊂ REC
- REC ⊂ RE
- MCQ · 1 mark
Type 2 grammars correspond to:
- finite automata
- PDAs
- LBAs
- TMs
- MCQ · 2 marks
L is RE and L̅ is RE. Then L is:
- regular
- context-free
- recursive
- possibly not recursive
- MSQ · 2 marks
RE languages are closed under:
- union
- complement
- Kleene star
- homomorphism
- MCQ · 1 mark
Recursive languages are not closed under:
- complement
- homomorphism
- union
- intersection
- MCQ · 2 marks
L is RE but not recursive. Then L̅ is:
- recursive
- RE, not recursive
- not RE
- context-free
- MCQ · 1 mark
The universal TM:
- decides { ⟨M,w⟩ : M accepts w }
- recognizes { ⟨M,w⟩ : M accepts w }
- is an LBA
- cannot simulate nondeterministic TMs
- MCQ · 1 mark
The Church–Turing thesis is:
- a proven theorem
- a hypothesis that algorithms = TMs
- a statement about speed
- about context-free grammars
Answer key
Reveal answers when you’re ready
- B — Read, write, move, change state.
- A: Backwards.
- C: No stack.
- D: It writes b.
- ABC — Halting ends the run.
- D: Halting is final.
- 5 — 1111 + 1 = 10000.
- B — n passes × O(n).
- A: No.
- C: No.
- D: No.
- ABC — LBA is weaker.
- D: CSLs only.
- C — Standard.
- A: CFL.
- B: CFL.
- D: Regular.
- B — Definition.
- A: RE.
- C: Too narrow.
- D: Irrelevant.
- ABCD — All strict.
- B — CFG ⇔ PDA.
- A: Type 3.
- C: Type 1.
- D: Type 0.
- C — Complement theorem.
- A: No.
- B: No.
- D: It must be recursive.
- ACD — Not complement.
- B: No.
- B — Homomorphism.
- A: Closed.
- C: Closed.
- D: Closed.
- C — Otherwise L recursive.
- A: No.
- B: No.
- D: No.
- B — Simulation.
- A: It may loop.
- C: Needs unbounded tape.
- D: NTMs can be converted to DTMs first.
- B — Thesis.
- A: Not provable.
- C: Not speed.
- D: No.