Context Free Grammar: GATE CS Previous Year Questions

Context Free Grammar · Theory of Computation

33 questions · asked in 12 of 27 years (2000–2026)

MCQ 26 · MSQ 5 · NAT 21-mark 15 · 2-mark 18

2000Questions per year2026

Questions 31–33 of 33

Q31GATE 20031 markMCQ−0.33 if wrong
Let G = ({S}, {a, b} R, S) be a context free grammar where the rule set R is S→aSb∣SS∣ϵS\rightarrow aSb|SS|\epsilon
Which of the following statements is true?

Q32GATE 20031 markMCQ−0.33 if wrong
Which of the following suffices to convert an arbitrary CFG to an LL(1) grammar?

Q33GATE 20001 markMCQ−0.33 if wrong
Consider the following decision problems:

(P1): Does a given finite state machine accept a given string?
(P2): Does a given context free grammar generate an infinite number of strings?

Which of the following statements is true?

Keep practising

Topics in Theory of Computation

All CS topics ›