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

Discussion

A symbol table entry for a procedure typically records

  • A.the number of times the procedure is called in the program
  • B.the parameter types, the return type and the entry point
  • C.only the name and nothing else besides that
  • D.the machine instructions that make up the procedure body

Answer: B

Calls are checked against the parameter list and the return type participates in expression typing. A pointer to the procedure's own local table is often held as well. Nested procedures make that chain of tables mirror the source structure.

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

Post your comment

Please log in or register to post a comment.