GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2022

GATE 2022 · CS · MSQ · 2 marks · Theory of Computation › Regular Languages & Finite Automata

GATE 2022 Computer Science and Information Technology question: Consider the following languages: L 1 = \ a n w a n w \ a,b\ \ L 2 = \ w x w R w, x \…

Consider the following languages:


Note that is the reversal of the string . Which of the following is/are TRUE?

  1. (A)

    and are regular.

  2. (B)

    and are context-free.

  3. (C)

    is regular and is context-free.

  4. (D)

    and are context-free but not regular.

Show answer

Official answer: A,B,C

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion