If you would like to look up the answers for 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.
What does it mean to say that an association is "one-to-one"? It means that it is (select one):
O Bidirectional
O Both functional and total
O Functional
O Both functional and inverse functional
A referential integrity constraint for a reference property p with domain class C and range class D has to be checked whenever (select one or many):
☐ An object of type C is destroyed.
☐ The value of p is changed for some object of type C.
☐ A new object of type C is created.
☐ An object of type D is destroyed.
☐ A new object of type D is created.
A unidirectional binary association is functional if and only if (select one):
O Each object of the source class is linked to at most one object of the target class.
O Each object of the target class is linked to at most one object of the source class.
O Each object of the source class is linked to at least one object of the target class.
O Each object of the source class is linked to exactly one object of the target class.
Assume that we have an object type B
with a standard
identifier attribute id
and an object type A
with an ID reference attribute b_id
referencing
B::id
. Further, assume that there is an object
b
of type B
with b.id = 11
and an
object a
of type A
referencing b
with a.b_id = 11
. Which of the following statements are
correct? Select one or many:
☐ The object b
can be destroyed when the ID
reference in object a
is unassigned (by setting
a.b_id
to undefined
in JS or to
null
in Java) and there is no other object that
references b
.
☐ The object a
can only be destroyed when
b
has been destroyed before.
☐ The object b
can be destroyed when the ID
reference in object a
is reset to another object of
type B
, e.g. by setting a.b_id = 7
and
there is no other object that references b
.
☐ The object b
can be destroyed when
a
has been destroyed before.
Which of the following statements about a single-valued reference property p and how it should be rendered in a web user interface by a suitable form control are correct? Select one or many:
☐ An adequate rendering is obtained by using an
input
control with type="text"
.
☐ If the cardinality of p's range is not greater than 7, it can be rendered by a check button group.
☐ If the cardinality of p's range is not greater than 7, it can be rendered by a radio button group.
☐ It can always be rendered by a single-select
control.