Regular Languages and Pumping Lemma questions

Q40

GATE CS 2017 CS-2Regular LanguagesMCQ2 marks−2/3 if wrong
Consider the following languages.

L1={ap∣p is a prime number}L_1 = \{a^p \mid p \text{ is a prime number}\}
L2={anbmc2m∣n≥0,m≥0}L_2 = \{a^n b^m c^{2m} \mid n \ge 0, m \ge 0\}
L3={anbnc2n∣n≥0}L_3 = \{a^n b^n c^{2n} \mid n \ge 0\}
L4={anbn∣n≥1}L_4 = \{a^n b^n \mid n \ge 1\}

Which of the following are CORRECT?

I. L1L_1 is context-free but not regular.
II. L2L_2 is not context-free.
III. L3L_3 is not context-free but recursive.
IV. L4L_4 is deterministic context-free.
Show answer without attempting

Answer: D

0/10 correct0 marks

Related topics in Regular Languages