A directory of Objective Type Questions covering all the Computer Science subjects. Here you can access and discuss Multiple choice questions and answers for various compitative exams and interviews.

Discussion Forum

Que. The following Context-Free Grammar (CFG) :

S → aB | bA

A → a | as | bAA

B → b | bs | aBB

will generate
a. odd numbers of a's and odd numbers of b's
b. even numbers of a's and even numbers of b's
c. equal numbers of a's and b's
d. different numbers of a's and b's
Answer:equal numbers of a's and b's
Confused About the Answer? Ask for Details Here
Know Explanation? Add it Here

Similar Questions: