7th Exam
7th Exam
● A(n) ________ is the relationship between a weak entity type and its owner.
The correct answer is: identifying relationship
● A relationship where the minimum and maximum cardinality are both one is a(n)
________ relationship.
The correct answer is: mandatory one
● An attribute that can be calculated from related attribute values is called a ________
attribute.
The correct answer is: derived
● An attribute that must be present for every entity (or relationship) instance is a(n):
The correct answer is: required attribute.
● A ________ specifies the number of instances of one entity that can be associated with
each instance of another entity.
The correct answer is: cardinality constraint
● The total quiz points for a student for an entire semester is a(n) ________ attribute.
The correct answer is: derived
● A student can attend five classes, each with a different professor. Each professor has 30
students. The relationship of students to professors is a ________ relationship.
The correct answer is: many-to-many
The correct answer is: Each vendor can supply many parts to any number of
warehouses, but need not supply any parts.
The correct answer is: Each employee can supervise one employee, no employees, or
many employees.
The correct answer is: Each patient has one or more patient histories.
The correct answer is: a strong entity and its associated weak entity.
● For the relationship represented in the figure below, which of the following is true?
The correct answer is: A department can have more than one employee.
The correct answer is: A person can marry at most one person.
● In the figure below, which attribute is multivalued?
12th Exam:
● Which of the following is not one of the five SQL built-in functions?
The correct answer is: MODE
● The order of the columns returned by an SQL SELECT statement is determined by the
________.
The correct answer is: order they are listed in following SELECT
● Which SQL keyword can be used in conjunction with wildcards to select partial values?
The correct answer is: LIKE
● Which of the following is the correct SQL clause to restrict the results of a SELECT
query to only records that have a value in the range of 10 to 50 in the Hours column?
The correct answer is: WHERE Hours BETWEEN 10 AND 50
● Which SQL keyword is used to apply conditions to restrict groups that appear in the
results of a SELECT query that uses GROUP BY?
The correct answer is: HAVING
● Which of the following SQL commands would be used to remove only the data from a
table named STUDENT while leaving the table structure intact?
The correct answer is: DELETE FROM STUDENT;
● A composite primary key can be defined using the CONSTRAINT phrase in which SQL
command?
The correct answer is: CREATE TABLE
● When the primary key of one relation is placed into a second relation, it is called a
________.
The correct answer is: foreign key
● Which of the following data types used in SQL would define a numeric field of the pattern
99.99?
The correct answer is: Numeric(4,2)
● Which of the following SQL commands would be used to remove both the data and the
table structure of a table named STUDENT?
The correct answer is: DROP TABLE STUDENT;
● Which SQL keyword is used to specify a condition that rows must meet to be included in
the results of an SQL SELECT query?
The correct answer is: WHERE
● A table that meets the requirements of a relation is said to be in which normal form?
The correct answer is: First normal form
● Which of the following is the correct SQL clause to sort the results of a SELECT query in
reverse-alphabetic order using the Department field?
The correct answer is: ORDER BY Department DESC
● Which SQL keyword is used to eliminate duplicate rows in the results of an SQL
SELECT query?
The correct answer is: DISTINCT
● During the normalization process, the remedy for a relation that is not well formed is to
________.
The correct answer is: break it into two or more relations that are well formed
● Which of the following data types used in SQL would define a fixed-length text field of 10
characters?
The correct answer is: Char(10)