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

Discussion

The following are all attributes commonly held in a symbol table entry EXCEPT

  • A.the storage location that has been assigned to the name
  • B.the number of times the name appears in the source text
  • C.the type of the name being declared
  • D.the scope in which the name was declared

Answer: B

Correct answer: the number of times the name appears in the source text

A count of occurrences serves no purpose in translation and is not kept. The attributes recorded are those the later phases need - type for checking, scope for resolution, storage location for code generation - and each earns its place by being consulted.

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

Post your comment

Please log in or register to post a comment.