Professional Documents
Culture Documents
Question 2
In airline reservation system, the entities are date, flight number,place of departure destination, type of
plane and seats available.The primary Key is
Select one:
a. Flight number + date
b. flight number+ place of departure
c. flight number + destination
d. flight number
Feedback
.
The correct answer is: Flight number + date
Question 3
Choose the incorrect statements
1) In network model, data is represented by a collection of records, and relationship among data are
represented by links
2) In hierarchical model, data and relationship among data are represented by records and links
respectively
3) In hierarchical model, the records are organized as a collection of arbitrary graphs.
4) in network model, the records are organized as a collection of trees.
Select one:
a. 1 and 3 only
b. 3 and 4 only
c. All are correct
d. 2 and 3 only
Feedback
.
The correct answer is: 3 and 4 only
Question 4
Let R(a,b,c) and S(d,e,f) be two relations in which d is the foreign key of S that refers to the primary
key of R. consider the following four operations R and S.
1. Insert into R
2. Insert into S
3. Delete from R
4. Delete from S.
which of the following is true about the referential integrity constraints above?
Select one:
a. Both 2 and 3 can cause its violation
b. Both 1 and 4 can cause its violation
c. All of 1,2,3 and 4 can cause its violation
Question 7
Student and courses enrolled is an example of
Select one:
a. many -to- one relationship
b. Many-to -many relationship
c. one-to-many relationship
d. one-to-one relationship
Feedback
Your answer is incorrect.
The correct answer is: Many-to -many relationship
Question 8
Consider the entities "hotel room" and "person" with a many to many relationship "loading". if we wish
to store information about the rent payment to be made by person(s) occupying different hotel rooms,
then this information should appear as an attribute of
Select one:
a. person
b. none of the above
c. Hotel room
d. lodging
Feedback
.
The correct answer is: lodging
Question 9
Entity set TRANSACTION has the attributes transaction number, date, amount. Entity set Account has
the attributes account number, customer name, balance.
c. Group
d. Attribute range
Feedback
.
The correct answer is: Domain
Question 12
The correct answer is: entity integrity constraints are specified on individual relations
Question 14
A trigger is
Select one:
a. a statement that is executed by the user when debugging an application program
b. a statement that is executed automatically by the system as a side effect of a modification to the
database
c. a condition the system tests for the validity of the database user
d. a statement that enables to start any DBMS
Feedback
.
The correct answer is: a statement that is executed automatically by the system as a side effect of a
modification to the database
Question 15
An attribute of the table matching the primary key of another table, is called as
Select one:
a. Foreign key
b. Secondary Key
c. Composite key
d. Candidate Key
Feedback
.
The correct answer is: Foreign key
Question 17
Question 21
A specific example where physical data independence would not hold is ____
Select one:
a. when an additional access structure, (example, an index) is created for a relation
b. when the user writes an application program to join tables
c. When DBA decides to store the data in a B+ tree
d. when data file is changed from an un-ordered file to a sorted file
Feedback
.
The correct answer is: when the user writes an application program to join tables
Question 23
The Database administrator is, in effect, the coordinator between the ___________ and the
_____________
Select one:
a. Database; Users
b. Application program; Database
c. Application programs; Users
d. DBMS; Database