

MCQOPTIONS
Saved Bookmarks
1. |
Consider the following context-free grammar over the alphabet β = {a, b, c} with S as the start symbol:S β abScT | abcTT β bT | bWhich one of the following represents the language generated by the above grammar? |
A. | {(ab)n (cb)n | n β₯ 1} |
B. | {(ππ)πΒ πππ1Β πππ2 β¦ ππππΒ |π, π1, π2 β¦ , ππ β₯ 1} |
C. | {(ab)n (cbm)n | m, n β₯ 1} |
D. | {(ab)n (cbn)m | m, n β₯ 1} |
AnswerΒ» C. {(ab)n (cbm)n | m, n β₯ 1} | |