5. Quiz Questions

If you would like to look up the answers to the following quiz questions, you can check our discussion forum. If you don't find an answer in the forum, you may create a post asking for an answer to a particular question.

5.1. Question 1: Languages supporting enumerations

Which of the following languages directly support enumerations by providing a special construct for defining them? Select one or more:

☐ Java ☐ JavaScript ☐ UML Class Diagrams ☐ C++ ☐ XML Schema ☐ SQL

5.2. Question 2: UI widget for single-valued enum attribute

Which of the following (combinations of) HTML elements can be used as a form control (or UI widget) for a single-valued enumeration attribute? Select one or more:

☐ a fieldset element containing a number of radio elements having the same name

☐ a fieldset element containing a number of checkbox elements having the same name

☐ a select element

☐ a checkbox element

☐ a radio element

5.3. Question 3: UI widget for multi-valued enum attribute

Which of the following (combinations of) HTML elements can be used as a form control (or UI widget) for a multi-valued enumeration attribute? Select one or more:

☐ a select element with the attribute setting multiple="multiple"

☐ a fieldset element containing a number of checkbox elements having the same name

☐ a fieldset element containing a number of radio elements having the same name

☐ a checkbox element

☐ a radio element

5.4. Question 4: Validation on user input

Recall that HTML select elements, radio button groups and checkbox groups are called choice widgets. They do do not allow the user to enter an invalid value. Which of the following constraints still have to be checked for a choice widget on user input? Select one or more:

☐ Pattern constraints

☐ String length constraints

☐ Mandatory value constraints

☐ Range constraints

5.5. Question 5: Value sets as enumerations

Which of the following value sets can be handled as enumerations in a data management app? Select one or more:

☐ The list of the names of the earth's planets {Mars, Venus, Saturn, ...}.

☐ The list of the names of all professors of a university.

☐ The list of the room numbers of a hotel.

☐ The list of room telephone numbers of a hotel.