Correct Answer - Option 1 : I only
CFL Properties:
1) Union of two context free languages is context free.
2) Intersection of two context free languages may or may not be context free.
L1 = {an bn cm | m, n ≥ 0}
This language is DCFL and hence CFL. As number of a’s are equal to number of b’s in this. Hence, only one stack is needed.
L2 = { am bn cn | m, n ≥ 0}
This language is also DCFL and hence CFL also. In this, number of b’s are equal to number of c’s, so, one stack is needed for this.
Now, from properties of CFL it is clear that union of two CFL is CFL.
So, statement 1 is correct
Statement 2 is correct.
intersection of two CFL may or may not be CFL.
For, L1 ∩ L2, we require two stacks, which becomes the case of context sensitive language. L1 ∩ L2 is not a CFL. So, option 2) is incorrect.