FINALS Flashcards
(33 cards)
Inheritance in a generalization hierarchy means that the supertype entity inherits all the attributes of the subtype entity.
Select one:
a. True
b. False
False
Which of the following is an example of a partial completeness constraint?
Select one:
a. A supertype “Pet” has subtypes “Dog,” “Cat,” and “Fish.” Each subtype can have any number of pets, including none.
b. A supertype “Building” has subtypes “House” and “Office.” Not all buildings must belong to one of these subtypes.
c. A supertype “Clothing” has subtypes “Shirt,” “Pants,” and “Dress.” Each piece of clothing must either be of the subtypes.
A supertype “Building” has subtypes “House” and “Office.” Not all buildings must belong to one of these subtypes.
Which of the following is an example of a partial completeness constraint?
Select one:
a. A supertype “Fruit” has subtypes “Apple” and “Orange.” All fruits must must either be of the subtypes.
b. A supertype “Shape” has subtypes “Circle,” “Square,” and “Triangle.” Not all shapes must belong to one of these subtypes.
c. A supertype “Employee” has subtypes “Manager” and “Worker.” Each subtype can have any number of employees, including none.
A supertype “Shape” has subtypes “Circle,” “Square,” and “Triangle.” Not all shapes must belong to one of these subtypes.
All weak entities must have a minimum cardinality of 1 on the entity on which it depends.
Select one:
a. False
b. True
True
Specifies that an entity instance can simultaneously be a member of two (or more) subtypes.
Select one:
a. anchor object
b. disjoint rule
c. overlap rule
overlap rule
A generic or template data model that can be reused as a starting point for a data modeling project.
Select one:
a. action assertion
b. total specialization rule
c. universal data model
universal data model
A supertype should have at least two subtypes.
Select one:
a. True
b. False
True
Which of the following is an example of a total completeness constraint?
Select one:
a. A supertype “Person” has subtypes “Employee” and “Manager.” Not all people must belong to one of these subtypes.
b. A supertype “Vehicle” has subtypes “Car,” “Truck,” and “Boat.” Each subtype can have any number of vehicles, including none.
c. A supertype “Animal” has subtypes “Cat,” “Dog,” and “Bird.” All animals must belong to one of these subtypes.
A supertype “Animal” has subtypes “Cat,” “Dog,” and “Bird.” All animals must belong to one of these subtypes.
All instances of the subtypes must be an instance of the supertype.
Select one:
a. FALSE
b. TRUE
TRUE
Specifies the number of instances of one entity that can (or must) be associated with each instance of another entity.
Select one:
a. weak entity
b. cardinality constraint
c. business rule
cardinality constraint
Which of the following is an example of a partial completeness constraint?
Select one:
a. A supertype “Color” has subtypes “Red,” “Blue,” and “Green.” Not all colors must belong to one of these subtypes.
b. A supertype “Document” has subtypes “Invoice,” “Receipt,” and “Quote.” Each subtype can have any number of documents, including none.
c. A supertype “Sport” has subtypes “Basketball,” “Football,” and “Baseball.” Each sport must must either be of the subtypes.
A supertype “Color” has subtypes “Red,” “Blue,” and “Green.” Not all colors must belong to one of these subtypes.
Specifies that if an entity instance (of the supertype) is a member of one subtype, it cannot simultaneously be a member of two (or more) subtypes.
Select one:
a. disjoint rule
b. anchor object
c. overlap rule
disjoint rule
A generic entity type that has a relationship with one or more subtypes.
Select one:
a. subtype
b. supertype
supertype
Which of the following is an example of a total completeness constraint?
Select one:
a. A supertype “Furniture” has subtypes “Couch,” “Chair,” and “Table.” Each subtype can have any number of pieces of furniture, including none.
b. A supertype “Person” has subtypes “Teacher,” “Student,” and “Administrator.” All people must belong to one of these subtypes.
c. A supertype “Vehicle” has subtypes “Car,” “Motorcycle,” and “Bicycle.” Not all vehicles must belong to one of these subtypes.
A supertype “Person” has subtypes “Teacher,” “Student,” and “Administrator.” All people must belong to one of these subtypes
Which of the following is an example of a total completeness constraint?
Select one:
a. A supertype “Food” has subtypes “Meat,” “Vegetables,” and “Fruits.” All types of food must belong to one of these subtypes.
b. A supertype “Device” has subtypes “Phone,” “Tablet,” and “Laptop.” Not all devices must belong to one of these subtypes.
c. A supertype “Animal” has subtypes “Mammals,” “Reptiles,” and “Fish.” Each subtype can have any number of animals, including none.
A supertype “Food” has subtypes “Meat,” “Vegetables,” and “Fruits.” All types of food must belong to one of these subtypes.
All instances of the supertype are also instances of one of the subtypes.
Select one:
a. False
b. True
True
A subtype can have a relationship not shared by the supertype.
Select one:
a. True
b. False
True
To remove a relation from a SQL database, we use the ______ command.
Select one:
a. Delete Table
b. Drop Table
c. Remove Table
Drop Table
What does SQL stand for?
Select one:
a. Structured Query Language
b. Structured Question Language
c. Strong Question Language
Structured Query Language
The BETWEEN SQL keywords specifies
Select one:
a. a list of values
b. a column list
c. a range to test in the SQL query search condition
a range to test in the SQL query search condition
Which one of the following provides the ability to query information from the database and to insert tuples into, delete tuples from, and modify tuples in the database?
Select one:
a. Data Manipulation Language
b. Data Control Language
c. Data Definition Language
Data Manipulation Language
Which of the following SQL statements has correct syntax?
Select one:
a. SELECT * FROM Table1 WHERE Column1 >= 10
b. SELECT * FROM Table1 WHERE Column1 = = 10
c. SELECT * FROM Table1 WHERE Column1 = > 10
SELECT * FROM Table1 WHERE Column1 >= 10
Which one of the following is used to define the structure of the relation, deleting relations and relating schemas ?
Select one:
a. Data Manipulation Language
b. Data Definition Language
c. Data Control Language
Data Definition Language
Create table employee (name varchar ,id integer)
What type of statement is this ?
Select one:
a. Data Control Language
b. Data Definition Language
c. Data Manipulation Language
Data Definition Language