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

Data Models into Database Designs Questions and Answers

1.

Which of the following data constraints would be used to specify that the value of cells in a column must be one of a specific set of possible values?

Answer: A

Correct answer: A domain constraint

A domain constraint restricts a column to a specified set of permitted values, so that only those values may be stored. A range constraint bounds the value between limits rather than enumerating it, an intrarelation constraint compares columns within one table, and an interrelation constraint compares across tables.

Please log in or register to report this question.

Answer: C

Correct answer: the child table.

The foreign key always goes on the many side. Each child row points to one parent, so a single foreign key column suffices; putting it in the parent would require room for an unknown number of child references in one row, which a relation cannot provide. That asymmetry is what makes parent and child meaningful in a 1:N relationship.

Please log in or register to report this question.

3.

Which of the following column properties specifies whether or not cells in a column must contain a data value?

Answer: A

Correct answer: Null status

Null status states whether a column may be left empty. It is one of the four column properties, alongside the data type, which says what kind of value may be stored; the default value, which says what to store if none is supplied; and the data constraints, which limit which values are acceptable.

Please log in or register to report this question.

Answer: B

Correct answer: NOT NULL.

A primary key identifies a row, and a null cannot identify anything, so every part of a primary key must be present in every row. The DBMS enforces this automatically when a primary key is declared, and entity integrity is the name given to the rule.

Please log in or register to report this question.

5.

Which of the following column properties would be used to specify that cells in a column must contain a monetary value?

Answer: B

Correct answer: Data type

Requiring a monetary value is a matter of the data type - a numeric type with a suitable precision and scale, chosen so that money is stored exactly rather than in binary floating point. Requiring a particular value would be a default, and requiring it to satisfy a condition would be a constraint.

Please log in or register to report this question.

Answer: D

Correct answer: All of the above use ID dependent entities

An ID-dependent entity cannot exist without its parent and takes the parent’s identifier as part of its own. All three cases have that character: an association relationship carries data of its own on an intersection between two parents, a multivalued attribute becomes a table dependent on the entity it describes, and an archetype and its instances stand in the same relation.

Please log in or register to report this question.

Answer: A

Correct answer: a column containing the primary key of another table.

A foreign key is a column, or set of columns, holding values that appear as the primary key of some table - often another, though a recursive relationship makes it the same one. It is the sole mechanism by which relationships are represented, since the relational model has no pointers and every link is expressed by matching values.

Please log in or register to report this question.

8.

Which of the following columns is(are) are required in a table?

Answer: C

Correct answer: A primary key

Every table must have a primary key, since without one its rows cannot be identified and duplicates cannot be prevented. Foreign keys appear only where the table participates as a child in a relationship, alternate keys only where more than one candidate exists, and a surrogate key only where one has been introduced deliberately.

Please log in or register to report this question.

Answer: A

Correct answer: either table without specifying parent and child tables.

In a one-to-one relationship each row on either side matches at most one on the other, so a single foreign key column serves whichever table it is placed in. There is no many side to force the choice, and the decision is made on practical grounds - which table is more often queried, or which participation is optional.

Please log in or register to report this question.

10.

Which of the following column properties would be used to specify that cells in a column must be immediately filled with a monetary value of $10,000?

Answer: C

Correct answer: Default value

A default value is what the DBMS supplies when the application provides none, so specifying that the cell must be filled immediately with a particular amount is a default. The data type would settle that it is money, and a constraint would limit which amounts are acceptable, but neither puts a value there.

Please log in or register to report this question.

Loading…

Other Subjects

Tags: Data Models into Database Designs Questions and Answers || Data Models into Database Designs MCQ Questions and Answers || Data Models into Database Designs GK Questions and Answers || Data Models into Database Designs GK MCQ Questions || Data Models into Database Designs Multiple Choice Questions and Answers || Data Models into Database Designs GK || GK on Data Models into Database Designs || Database Questions and Answers || Database MCQ Questions and Answers || Database GK Questions and Answers || GK on Database