Machine-translated by Google. Questions are authored in English.
Top

Discussion

The Chomsky hierarchy places context free languages

  • A.below regular languages and above context sensitive languages
  • B.at the same level as the regular languages in the hierarchy
  • C.outside the hierarchy since they are recognised by automata
  • D.above regular languages and below context sensitive languages

Answer: D

Type 3 is regular, type 2 context free, type 1 context sensitive and type 0 unrestricted. Each class strictly contains the one below it in recognition power. The hierarchy explains why a compiler needs both a scanner and a parser.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.