Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Pumping Lemma Quiz

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

What is the main purpose of the Pumping Lemma for regular languages?

a)

To prove that a language is regular

b)

To prove that a language is not regular

c)

To generate regular expressions

d)

To minimize finite automata

2.

According to the Pumping Lemma for regular languages, any string s in the language with length at least p can be divided into parts x, y, z such that:

a)

s=xy+z

b)

s=xyz and |xy|≤p, |y|≥1

c)

s=xyz and |x|≥1, |y|≥1

d)

s=x+y+z and |z|≤p

3.

What does the “pumping length” p represent in the Pumping Lemma?

a)

The minimum number of states in the DFA

b)

The maximum length of any string in the language

c)

A constant dependent on the number of states in the automaton

d)

The total number of symbols in the alphabet

4.

Which of the following conditions must hold for all i≥0 in the Pumping Lemma for regular languages?

a)

xy^iz∈L

b)

xy^iz∉L

c)

xy^iz=xyz

d)

xy^iz must be empty

5.

Which of the following languages violates the Pumping Lemma for regular languages?

a)

L={a^n b^n | n≥0}

b)

L={a^n b^m | n,m≥0}

c)

L={0^* 1^*}

d)

L={a,b}^*

6.

What is the correct way to prove that a language is not regular using the Pumping Lemma?

a)

Find one decomposition that satisfies the lemma

b)

Show that for all possible decompositions, the lemma holds

c)

Show that for all possible decompositions, the lemma fails

d)

Find a DFA that recognizes the language

7.

Which of the following is true about the Pumping Lemma for context-free languages?

a)

It uses three parts: x, y, z

b)

It uses five parts: u, v, w, x, y

c)

It only applies to regular languages

d)

It cannot be used to show non-context-freeness

8.

In the context-free Pumping Lemma, what property must hold for all i≥0?

a)

u v^i w x^i y∈L

b)

u v^i w x^i y∉L

c)

u v^i w x^i y=u v w x y

d)

u v^i w x^i y is empty

9.

Which of the following languages is not context-free and can be shown using the context-free Pumping Lemma?

a)

L={a^n b^n c^n | n≥0}

b)

L={a^n b^m | n,m≥0}

c)

L={a^i b^j | i

d)

L={a^n b^n | n≥0}

10.

What is the major limitation of the Pumping Lemma?

a)

It can prove both regularity and non-regularity

b)

It can only prove regularity, not non-regularity

c)

It can only prove non-regularity, not regularity

d)

It cannot be used for any language

11.

Who is considered the father of theoretical computer science and artificial intelligence?

a)

John von Neumann

b)

Alan Turing

c)

Alonzo Church

d)

Stephen Kleene

12.

What is the major contribution of Alan Turing to Automata Theory?

a)

The concept of finite automata

b)

The invention of digital computers

c)

The introduction of the Turing Machine model

d)

The design of the ENIAC computer

13.

The Turing Machine was introduced to formalize the concept of:

a)

Artificial Intelligence

b)

Computability and algorithms

c)

Programming languages

d)

Software development

14.

A Turing Machine consists of which of the following components?

a)

Input tape, head, and processor

b)

Tape, tape head, and finite control

c)

Memory, monitor, and keyboard

d)

State diagram, compiler, and input alphabet

15.

What does it mean if a language is Turing recognizable (or recursively enumerable)?

a)

A Turing Machine can decide it and always halts

b)

A Turing Machine can accept it, but might not halt for non-members

c)

The language is finite

d)

It cannot be recognized by any automaton

16.

What is the Halting Problem, as introduced by Alan Turing?

a)

The problem of stopping an infinite tape

b)

The problem of determining whether a Turing Machine halts on a given input

c)

The problem of counting tape symbols

d)

The problem of minimizing automata

17.

Which of the following statements is true about the Halting Problem?

a)

It is decidable by any Turing Machine

b)

It is undecidable — no Turing Machine can solve it for all cases

c)

It can be solved by finite automata

d)

It applies only to regular languages

18.

The concept of the “Universal Turing Machine” proposed by Alan Turing represents:

a)

A machine that can simulate any other Turing Machine

b)

A machine that can only process regular languages

c)

A physical computer for AI experiments

d)

A simplified DFA for all inputs

19.

What is the significance of Turing’s work in the history of computation?

a)

It limited computation to arithmetic operations only

b)

It showed that all mechanical computation can be modeled mathematically

c)

It eliminated the need for algorithms

d)

It focused only on artificial intelligence

20.

Which statement best describes the relationship between Alan Turing’s work and modern computers?

a)

Turing’s model inspired the concept of general-purpose programmable machines

b)

Turing’s model was never implemented in practice

c)

Turing only worked on biological systems

d)

Turing’s theory contradicted digital computation