MSQ · 2 marks · Context Free Languages

GATE CS 2024 CS-2 — Q52

Consider a context-free grammar GG with the following 3 rules.
S→aSS \to aS, S→aSbSS \to aSbS, S→cS \to c

Let w∈L(G)w \in L(G). Let na(w),nb(w),nc(w)n_a(w), n_b(w), n_c(w) denote the number of times a,b,ca, b, c occur in ww, respectively. Which of the following statements is/are TRUE?
Select all correct options