Question #121: Which of the following statements are true about variables of CFG?
- The language of the variables of CFG can’t be regular language.
- The language of the variables of CFG can be regular as well as context free language.
- There is no language of the variables of CFG.
- Only start symbol has the language, which is context free language.
Solution:
All variables have a language and they can represent regular language as well. Regular language is a subset of context free language. Hence, the correct answer is option 2.


