Consider the following grammar. S → AB A → a A → BaB B → bbA Which of the…
ISRO Scientist/Engineer SC · 2014 · Computer ScienceModified — slightly modified from the official paper; see the solution
Consider the following grammar.
S → AB
A → a
A → BaB
B → bbA
Which of the following statements is FALSE?
- A.
The length of every string produced by this grammar is even
- B.
No string produced by this grammar has three consecutive a's
- C.
The length of substring produced by B is always odd
- D.
No string produced by this grammar has four consecutive b's
Attempted by 141 students.
Show answer
Correct answer: D
Explore the full course: Iocl Engineers Officers Grade A Paper 2
Loading lesson…