Which of the following option is incorrect?
(A) Examples of tokens are id, number, int, printf, void, return, newline etc.
(B) Examples of non-tokens are comments, preprocessor directive, macros, blanks, tabs, etc.
(C) Symbol table can be implemented using an array, hash table, tree, linked list.
(D) Semantic analyzer checks that parse tree generated by the syntax analyzer
is meaningful or not.


Answer: (A)

Explanation: newline is a non-token.

For more information on the different phase of a compiler

So, option (A) is false.

Quiz of this Question


  • Last Updated : 14 Dec, 2018

Share your thoughts in the comments