GATEverse
← GATE CSE 2024 Set 2

Q42

MSQ2 marks

Consider a context-free grammar G\text{G} with the following 33 rules.

S→aS,S→aSbS,S→cS \rightarrow a S, S \rightarrow a S b S , S \rightarrow 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?

Sign in to save attempts.

Loading…