Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Test  >  Theory of Computation  >  Test: Pumping Lemma for Context Free Language - Computer Science Engineering (CSE) MCQ

Pumping Lemma for Context Free Language - MCQ Practice Test with solutions,


MCQ Practice Test & Solutions: Test: Pumping Lemma for Context Free Language (10 Questions)

You can prepare effectively for Computer Science Engineering (CSE) Theory of Computation with this dedicated MCQ Practice Test (available with solutions) on the important topic of "Test: Pumping Lemma for Context Free Language". These 10 questions have been designed by the experts with the latest curriculum of Computer Science Engineering (CSE) 2026, to help you master the concept.

Test Highlights:

  • - Format: Multiple Choice Questions (MCQ)
  • - Duration: 10 minutes
  • - Number of Questions: 10

Sign up on EduRev for free to attempt this test and track your preparation progress.

Test: Pumping Lemma for Context Free Language - Question 1

Which of the following is called Bar-Hillel lemma?

Detailed Solution: Question 1

 In automata theory, the pumping lemma for context free languages, also kmown as the Bar-Hillel lemma, represents a property of all context free languages.

Test: Pumping Lemma for Context Free Language - Question 2

Which of the expressions correctly is an requirement of the pumping lemma for the context free languages?

Detailed Solution: Question 2

Let L be a CFL. Then there is an integer n so that for any u that belong to language L satisfying |t| >=n, there are strings u, v, w, x, y and z satisfying
t=uvwxy
|vx|>0
|vwx|<=n For any m>=0, uvnwxny ∈ L

Test: Pumping Lemma for Context Free Language - Question 3

Let L be a CFL. Then there is an integer n so that for any u that belong to language L satisfying
|t|>=n, there are strings u, v, w, x, y and z satisfying
t=uvwxy.
Let p be the number of variables in CNF form of the context free grammar. The value of n in terms of p :

Detailed Solution: Question 3

This inequation has been derived from derivation tree for t which must have height at least p+2(It has more than 2p leaf nodes, and therefore its height is >p+1).

Test: Pumping Lemma for Context Free Language - Question 4

Which of the following gives a positive result to the pumping lemma restrictions and requirements?

Detailed Solution: Question 4

A positive result to the pumping lemma shows that the language is a CFL and ist contradiction or negative result shows that the given language is not a Context Free language.

Test: Pumping Lemma for Context Free Language - Question 5

 Using pumping lemma, which of the following cannot be proved as ‘not a CFL’?

Detailed Solution: Question 5

There are few rules in C that are context dependent. For example, declaration of a variable before it can be used.

Test: Pumping Lemma for Context Free Language - Question 6

State true or false:Statement: We cannot use Ogden’s lemma when pumping lemma fails.

Detailed Solution: Question 6

 Although the pumping lemma provides some information about v and x that are pumped, it says little about the location of these substrings in the string t. It can be used whenever the pumping lemma fails. Example: {apbqcrds|p=0 or q=r=s}, etc.

Test: Pumping Lemma for Context Free Language - Question 7

Which of the following cannot be filled in the blank below?
Statement: There are CFLs L1 nad L2 so that ___________is not a CFL.

Detailed Solution: Question 7

A set of context free language is closed under the following operations:
a) Union
b) Concatenation
c) Kleene

Test: Pumping Lemma for Context Free Language - Question 8

The pumping lemma is often used to prove that a language is:

Detailed Solution: Question 8

The pumping lemma is often used to prove that a given language L is non-context-free, by showing that arbitrarily long strings s are in L that cannot be “pumped” without producing strings outside L.

Test: Pumping Lemma for Context Free Language - Question 9

 What is the pumping length of string of length x?

Detailed Solution: Question 9

There exists a property of all strings in the language that are of length p, where p is the constant-called the pumping length .For a finite language L, p is equal to the maximum string length in L plus 1.

Test: Pumping Lemma for Context Free Language - Question 10

Which of the following does not obey pumping lemma for context free languages ?

Detailed Solution: Question 10

: Finite languages (which are regular hence context free ) obey pumping lemma where as unrestricted languages like recursive languages do not obey pumping lemma for context free languages.

18 videos|95 docs|44 tests
Information about Test: Pumping Lemma for Context Free Language Page
In this test you can find the Exam questions for Test: Pumping Lemma for Context Free Language solved & explained in the simplest way possible. Besides giving Questions and answers for Test: Pumping Lemma for Context Free Language, EduRev gives you an ample number of Online tests for practice
18 videos|95 docs|44 tests
Download as PDF