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}


Discussion

No Comment Found

Related MCQs