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

Discussion

The information about an array used in a program will be stored in

  • A.Symbol table
  • B.Activation record
  • C.Both (a) and (b)
  • D.Dope vector

Answer: D

Correct answer: Dope vector

The dope vector is the descriptor an implementation keeps for an array: base address, element size, number of dimensions and the bounds of each. It is what address computation and bounds checking work from. A symbol table holds compile-time names and types; an activation record holds one call’s locals.

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

Post your comment

Please log in or register to post a comment.