MCQ · 2 marks · Context Free Languages

GATE CS 2017 CS-1 — Q38

Consider the following languages over the alphabet Σ={a,b,c}\Sigma = \lbrace a, b, c \rbrace. Let L1={anbncm∣m,n≥0}L_1 = \lbrace a^n b^n c^m \mid m, n \ge 0 \rbrace and L2={ambncn∣m,n≥0}L_2 = \lbrace a^m b^n c^n \mid m, n \ge 0 \rbrace.

Which of the following are context-free languages?

I. L1∪L2L_1 \cup L_2
II. L1∩L2L_1 \cap L_2
Select one option