Quiz: Unidirectional Non-Functional Associations

Take a short quiz on unidirectional non-functional associations.

(Select all that apply.) Which of the following statements regarding the implementation of collection-valued properties in JavaScript is correct?

1
A)

A bag-valued property is implemented if we represent bags (also called ‘multi-sets’) as JS arrays.

B)

A set-valued property is implemented if we represent sets as JS arrays since, in contrast to JS maps, they guarantee that each element is unique.

C)

An ordered-set-valued property is implemented if we represent ordered sets as JS maps.

D)

An ordered-set-valued property is implemented if we represent ordered sets as JS arrays.

E)

A set-valued property is implemented if we represent sets as classical JS maps since, in contrast to JS arrays, they guarantee that each element is unique.

F)

A bag-valued property is implemented if we represent bags (also called multi-sets) as JS maps.

Question 1 of 30 attempted

Get hands-on with 1400+ tech skills courses.