Dbs 600 Final Database Systems
Dbs 600 Final Database Systems
Page 1 of 9
Downloaded by Tr?n Quân 27. ([email protected])
lOMoARcPSD|23491079
1.1 An ________ is a set of entities of the same type that share the same properties, or
attributes. (1)
A. Entity set
B. Attribute set
C. Relation set
D. Entity model
1.2 The attribute AGE is calculated from DATE_OF_BIRTH. The attribute AGE is (1)
A. Single valued.
B. multivalued.
C. composite.
D. Derived
1.4 The database environment has all of the following components except
(1)
A. users
B. Separate files
C. Database
D. Database administrators.
1.5 The way a particular application views the data from the database that the
application uses is a (1)
A. Module
B. Relational model
C. Schema
D. Subschema
Page 2 of 9
Downloaded by Tr?n Quân 27. ([email protected])
lOMoARcPSD|23491079
1.8 To refer to a specific instance of a relation in a relational model the term used is known as
&. (1)
A. Relational instance
B. Relational entity
C. Relational tuple
D. Relational attribute
1.9 Type of specialization in which all subclasses have membership condition on super class of
similar attribute is classified as __________.
(1)
A. constraint-defined specialization
B. key-defined specialization
C. entity-defined specialization
D. attribute-defined specialization
1.10 The refinement from an initial entity set into successive levels of entity subgroupings
represents a ________ design process in which distinctions are made explicit. (1)
A. Hierarchy
B. Bottom up
C. Top down
D. Radical
1.11 Which one of the following is used to define the structure of the relation, deleting
relations and relating schemas (1)
A. DML(Data Manipulation Language)
B. DDL(Data Definition Language)
C. Query
D. Relational Schema
Page 3 of 9
Downloaded by Tr?n Quân 27. ([email protected])
lOMoARcPSD|23491079
1.12 Which-one of the following statements about normal forms is FALSE? (1)
A. BCNF is stricter than 3 NF
B. Lossless, dependency -preserving decomposition into 3 NF is always possible
C. Loss less, dependency – preserving decomposition into BCNF is always possible
D. Any relation with two attributes is BCNF
1.13 Every time attribute A appears, it is matched with the same value of attribute B, but not
the same value of attribute C. Therefore, it is true that: (1)
A. A → B.
B. A → C.
C. A → (B,C).
D. (B,C) → A
1.17 In a relation between the entities the type and condition of the relation should be
specified. That is called as______attribute (1)
A. Descriptive
B. Derived
C. Recursive
D. Relative
Page 4 of 9
Downloaded by Tr?n Quân 27. ([email protected])
lOMoARcPSD|23491079
1.18 Derived attributes in entity relationship diagrams are denoted by: (1)
A. Dotted triangle
B. Dotted rectangle
C. Dotted Oval
D. Dotted square
1.19 In entity-relationship, entity type which has existence dependency constraint is classified
as (1)
A. Single entity
B. Foreign entity
C. Weak entity
D. Strong entity
1.20 A ___________ is an indirect functional dependency, one in which X->Z Only by virtue of X-
>Y and Y->Z (1)
A. Multivalued Dependencies
B. Join Dependency
C. Trivial Functional Dependency
D. Transitive Dependencies
1.23 If there is more than one key for relation schema in DBMS, then each key in relation
schema is classified as (1)
A. Prime key
B. Super key
C. Candidate key
D. Primary key
Page 5 of 9
Downloaded by Tr?n Quân 27. ([email protected])
lOMoARcPSD|23491079
1.24 Consequently R. Boyce-Codd jointly launched powerful definition for the third normal form
called
(1)
A. Boyce-Codd normal form
B. First normal form
C. Second normal form
D. All of the above
1.26 Which is the process of breaking a relation into multiple relations? (1)
A. Functional dependency
B. Database modelling
C. Normalization
D. Decomposition
1.27 The database design prevents some data from being represented due to _______: (1)
A. Deletion anomalies
B. Insertion anomalies
C. Update anomalies
D. None of the above
1.28 Normal form which only includes indivisible values or single atomic values is classified as (1)
A. Third normal form
B. First normal form
C. Second normal form
D. Fourth normal form
1.29 If attribute of relation schema R is member of some candidate key, then this type of
attributes is classified as (1)
A. Atomic attribute
B. Candidate attribute
C. Nonprime attribute
D. Prime attribute
Page 6 of 9
Downloaded by Tr?n Quân 27. ([email protected])
lOMoARcPSD|23491079
1.30 Form of dependencies in which set of attributes that are neither a subset of any of keys
nor candidate key is classified as (1)
A. transitive dependency
B. full functional dependency
C. partial dependency
D. prime functional dependency
2.1 Construct an E-R diagram for a car-insurance company whose customers own one or more
cars each. Each car has associated with it zero to any number of recorded accident. (10)
2.2 You are also required to construct the tables, with sample data, for the ER diagram you
have designed for the above question. (10)
3.1 The South African embassy records details of interviews of visa applicants in the table
below Interviews are conducted by members of staff in some of the embassy rooms. In
any given day, a member of staff tends to use the same room throughout that day. An
applicant cannot have two interviews in the same day.
3.2 The three-tier architecture is commonly used to implement a database driven web
application. Draw a diagram to illustrate this architecture (10)
3.3 Explain the duties and responsibilities of a database administrator?
(5)
Page 7 of 9
Downloaded by Tr?n Quân 27. ([email protected])
lOMoARcPSD|23491079
4.1 Explain what a relationship is, and what three types of relationship exist? Give an example (15)
of each of the three types of relationship.
4.2 Explain what is logical independence? (5)
4.3 Explain what is a relation, and what role does it play in the relational model? (5)
5.1 Refer to the following tables then answer the questions that follow.
Table1 Publisher:
pub_ID pub_name address city state
736 New Age Books 4 1st Ave. Boston MA
Table 2 Titles:
Title_ID title cat Pub_ID price
2091 Is anger the enemy psychology 0736 10.00
2106 Life without fear psychology 0736 7.00
1035 alien sci-fi 1389 19.99
SQL query 1:
SELECT pub_ID, pub_name
FROM publisher
WHERE state NOT IN ('MA','IL') AND pub_name NOT LIKE 'A%'
SQL query 2:
SELECT cat, AVG(price) AS AveragePrice, SUM (price + price*0.2) AS TotalPrice
FROM titles
GROUP BY cat;
Show the data output produced when each of the following SQL queries are executed.
(15)
Page 8 of 9
Downloaded by Tr?n Quân 27. ([email protected])
lOMoARcPSD|23491079
5.2 The above tables are in the first normal form (1NF). You required to normalize the tables
into the second normal form (2NF). Show the resulting tables with their dependencies and
explain your answer. (10)
Page 9 of 9
Downloaded by Tr?n Quân 27. ([email protected])