🤖

Theory of Computation MCQ

Test your Theory of Computation knowledge with 100 multiple choice questions covering fundamentals to advanced concepts, with instant feedback and explanations.

100 Questions 40 Beginner 40 Intermediate 20 Advanced
1

What is a finite automaton (FA)?

2

What is a regular language?

3

What does DFA stand for?

4

What is the difference between a DFA and an NFA?

5

What is a regular expression?

6

What is a context-free grammar (CFG)?

7

What type of automaton recognizes context-free languages?

8

What is a Turing machine?

9

What does the Church-Turing thesis claim?

10

What is the Halting Problem?

11

What is a decidable language?

12

What is the Chomsky hierarchy?

13

What does ε (epsilon) represent in formal language theory?

14

What is the Kleene star operation?

15

What is an ε-NFA?

16

What is the language of a grammar?

17

What is a terminal symbol in a grammar?

18

What is ambiguity in a context-free grammar?

19

What is the union of two regular languages?

20

What is the complement of a language L over alphabet Σ?

21

What is a parse tree?

22

What is the language {aⁿbⁿ | n ≥ 0}?

23

What does it mean for a language to be recursively enumerable (RE)?

24

What is a leftmost derivation?

25

What is a dead state in a DFA?

26

What is the state minimization of a DFA?

27

What does the subset construction algorithm do?

28

What is Greibach Normal Form (GNF)?

29

What is Chomsky Normal Form (CNF)?

30

What is a linear bounded automaton (LBA)?

31

What is a transducer?

32

What is a language that is RE but not decidable?

33

What is the CYK (Cocke-Younger-Kasami) algorithm?

34

What is the difference between a recognizer and a decider?

35

What does it mean for a problem to be undecidable?

36

What is a nondeterministic Turing machine (NTM)?

37

What is the significance of the Empty Language ∅ in formal languages?

38

What is a production rule in a grammar?

39

What is a Moore machine?

40

What is the concatenation of languages L₁ and L₂?

1

What is the Pumping Lemma for regular languages used for?

2

What language does the language {aⁿbⁿcⁿ | n ≥ 1} belong to?

3

What is a closure property in formal language theory?

4

What does the Myhill-Nerode theorem characterize?

5

What is Rice's theorem?

6

What is the Earley parser algorithm used for?

7

What is the difference between LL and LR parsing?

8

What is the emptiness problem for CFGs?

9

What is reduction in computability theory?

10

What is the Post Correspondence Problem (PCP)?

11

What is the complexity class P?

12

What is the complexity class NP?

13

What is an NP-complete problem?

14

What was the first problem proven NP-complete?

15

What is the Pumping Lemma for context-free languages?

16

What is the complexity class PSPACE?

17

What is Savitch's theorem?

18

What is the complexity class co-NP?

19

What is the polynomial hierarchy?

20

What is a Mealy machine?

21

What is the two-stack PDA and its expressive power?

22

What is a time-constructible function?

23

What is the relationship between decidability and semi-decidability?

24

What is a 3-SAT problem?

25

What is the space complexity class L (LOGSPACE)?

26

What is the self-reference in Kleene's recursion theorem?

27

What is an oracle Turing machine?

28

What is interactive proof system (IP class)?

29

What is zero-knowledge proof?

30

What does the acronym EXPTIME mean?

31

How do you systematically convert a regular expression into an NFA?

32

How do you prove that the language L = {0ⁿ1ⁿ | n ≥ 0} is not regular?

33

Which closure property distinguishes regular languages from context-free languages?

34

How would you construct a context-free grammar for the language {aⁱbʲ | i ≠ j}?

35

Why is left recursion a problem for top-down (LL) parsers, and how is it resolved?

36

How is the product construction used to build a DFA for the intersection of two regular languages?

37

What technique converts a CFG into Chomsky Normal Form, and why is it useful?

38

Which of the following problems about finite automata is decidable?

39

How does the subset construction explain why an n-state NFA can require up to 2ⁿ states when converted to a DFA?

40

How can you show that context-free languages are closed under concatenation but not under intersection?