Consider the following grammar:

S → 0A|0BB

A → 00A|λ

B → 1B|11C

C → B

Which language does this grammar generate?

This question was previously asked in
UGC NET Computer Science (Paper 2) Dec 2019 Paper
View all UGC NET Papers >
  1. L((00) * 0 + (11) * 1)
  2. L(0(11) * + 1(00) * )
  3. L((00) * 0)
  4. L(0(11) * 1)

Answer (Detailed Solution Below)

Option 3 : L((00) * 0)
Free
UGC NET Paper 1: Held on 21st August 2024 Shift 1
16.1 K Users
50 Questions 100 Marks 60 Mins

Detailed Solution

Download Solution PDF

Given grammar is generating string of type: {0, 000, 00000,0000000…...}

1) L((00) * 0 + (11) * 1)

This language generating string with combination of 0’s and 1’s. But given grammar is not generating any string composed of 1’s.

2) L(0(11) * + 1(00) * )

This language is not generating string which contains three 0’s together. Also, it is generating strings which contains 1 in it. So, it is not correct option.

3) L((00) * 0)

It is generating strings of type: {0, 03, 05, 07,.}. These set of strings is similar to the one generating from given grammar. So, this language is generated by given grammar.

4) L(0(11) * 1)

It is incorrect because it is generating strings which contains 1 which is not the case with given grammar. 

Latest UGC NET Updates

Last updated on Jul 4, 2025

-> The UGC NET Response Sheet will be available soon on the official website.

-> The UGC NET June 2025 exam will be conducted from 25th to 29th June 2025.

-> The UGC-NET exam takes place for 85 subjects, to determine the eligibility for 'Junior Research Fellowship’ and ‘Assistant Professor’ posts, as well as for PhD. admissions.

-> The exam is conducted bi-annually - in June and December cycles.

-> The exam comprises two papers - Paper I and Paper II. Paper I consists of 50 questions and Paper II consists of 100 questions. 

-> The candidates who are preparing for the exam can check the UGC NET Previous Year Papers and UGC NET Test Series to boost their preparations.

More Regular Languages Questions

Get Free Access Now
Hot Links: teen patti pro teen patti gold new version 2024 teen patti wink teen patti cash teen patti master download