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

Discussion

The reserved word enum is used for which of the following?

  • A.To define a range for an attribute.
  • B.To define a range for a class.
  • C.To define a range for a relationship.
  • D.All of the above.

Answer: A

Correct answer: To define a range for an attribute.

An enumerated type lists the permitted values, so an attribute declared with it can hold nothing else - a status that must be one of open, held or closed, for instance. The constraint is part of the schema rather than something the application has to enforce.

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

Post your comment

Please log in or register to post a comment.