When we want to restrict any property to a set of legal values where set size is short - to - medium and set frequently changes, the preferable way is by choosing

  1. Class Key value

  2. Local List

  3. Remote List

  4. None of the above


Correct Option: B

AI Explanation

To answer this question, we need to understand the different options and their characteristics:

Option A) Class Key value - This option refers to using a specific value within a class to restrict a property to a set of legal values. However, this option may not be preferable when the set size is short to medium and frequently changes.

Option B) Local List - This option involves using a local list to restrict a property to a set of legal values. This is the preferable option when the set size is short to medium and frequently changes. By using a local list, you can easily update or modify the set of legal values as needed.

Option C) Remote List - This option involves using a remote list to restrict a property to a set of legal values. This may involve accessing the values from a remote server or external source. While this option may be suitable for certain scenarios, it may not be the preferable choice when the set size is short to medium and frequently changes.

Option D) None of the above - This option implies that none of the given options are the preferable way to restrict a property to a set of legal values. However, based on the information provided, option B (Local List) is the correct answer.

The correct answer is B) Local List. This option is the preferable choice when the set size is short to medium and frequently changes, as it allows for easy updates and modifications to the set of legal values.

Find more quizzes: