Context Free Grammars questions

Q47

GATE CS 2022 CSContext Free LanguagesMSQ2 marks
Consider the following languages:

L1={anwan∣w∈{a,b}∗}L_1 = \{a^nwa^n \mid w \in \{a, b\}^*\}
L2={wxwR∣w,x∈{a,b}∗,∣w∣,∣x∣>0}L_2 = \{wxw^R \mid w, x \in \{a, b\}^*, |w|, |x| > 0\}

Note that wRw^R is the reversal of the string ww. Which of the following is/are TRUE?
More than one option can be correct.
Show answer without attempting

Answer: A, B, C

Q48

GATE CS 2022 CSContext Free LanguagesMSQ2 marks
Consider the following languages:

L1={ww∣w∈{a,b}∗}L_1 = \{ww \mid w \in \{a, b\}^*\}
L2={anbncm∣m,n≥0}L_2 = \{a^nb^nc^m \mid m, n \ge 0\}
L3={ambncn∣m,n≥0}L_3 = \{a^mb^nc^n \mid m, n \ge 0\}

Which of the following statements is/are FALSE?
More than one option can be correct.
Show answer without attempting

Answer: B, C, D

0/20 correct0 marks

Related topics in Context Free Languages