Back to the 2021 paper

Module 2: Context-Free Languages (CFL) and PDA

20212m

____ is the acyclic graphical representation of a grammar.

(i) Binary tree
(ii) Octtree
(iii) Parse tree
(iv) None of the above

Worked SolutionAI Assisted

Answer

Correct Option: (iii) Parse tree

Explanation

Parse tree (derivation tree / syntax tree): Acyclic, rooted, ordered tree representing derivation.

  • Root = start symbol SS
  • Internal nodes = non-terminals
  • Leaves = terminals (yield = derived string)
  • No cycles (grammar is context-free, derivation finite).

Not binary tree specifically (parse tree can be nn-ary), not octtree. Binary tree is for CNF.

Final Answer

Parse tree → Option (iii).

Similar questions

Free AppAndroid App

Coursify Android App

Generate AI courses, take quick quizzes between classes, and master complex engineering concepts on the go.