Objective test
1. One disadvantage of the file based approach is
A. Complexity
B. Cost
C. Performance
D. Duplication of data
2. Know fact that can be recorded and having implicit meaning is known as
A. Database
B. Data
C. Number
D. Information
3. Software that enable users to create and maintain database is known as
A. Database system
B. DBMS
C. SQL
D. Microsoft office
4. Database environment is made up of how many components?
A. 4
B. 6
C. 5
D. 3
5. A real world object with independent existence is known as
A. Relation
B. Attribute
C. Entity
D. Tuple
6. A row a relation is known as
A. Relation
B. Attribute
C. Entity
D. Tuple
7. A key that uniquely identifies a record in a relation is known as
A. Primary key
B. Super key
C. Foreign key
D. Secondary keys
8. A database object that consist of rows and columns is known as
A. table
B. Query
C. Form
D. Report
9. Which database object is used for viewing and editing data
A. table
B. Query
C. Form
D. Report
10. ……………… commands are used to request for specific data from a database
A. Table
B. Query
C. Form
D. Report
11. Which of the following is not a DDL Command
A. Select
B. Alter
C. Drop
D. Truncate
12. Which of the following is not a DML command
A. Select
B. Insert
C. Delete
D. Create
13. Foreign key cannot be duplicated
A. True
B. False
14. Redundancy is associated with database approach
A. True
B. False
15. A set of allowable values for a column is referred to as
A. Tuple
B. Attribute
C. Domain
D. Range
16. …………….. is an association between entities in a database
A. Joint
B. Relation
C. Relationship
D. Foreign key
17. When two entities are involved in a relationship it is known as
A. Double relationship
B. Binary relationship
C. Ternary relationship
D. Multi relationship
18. ………………state that the foreign key value would refer to a primary key value of
another table, or it can be null.
A. domain integrity
B. Referential integrity
C. Domain constraint
D. Entity constraint
19. The purpose of the conceptual design is to organize scope and define business concepts
and rules.
A. True
B. False
20. The physical database designed is done by the database administrator and it represent the
actual implementation of the database
A. True
B. False
Theory
1 (a) Describe the five components of the DBMS environment
(b) Explain the meaning of the following terms.
i. Data
ii. Database
iii. Database Management System (DBMS)
iv. Application Program
v. Database System
2 (a) what are the two major components of SQL and what function do they serve?
(b) i. What is an entity?
ii. List five properties of relations
(c) Differentiate between a candidate key and a primary key 4mark
PRACTICALS
1. Consider the entity relationship diagram for a college library below
Use the diagram to answer the questions below
a. i. Convert the ER diagram into relations
ii. Underline all primary keys
Marking Scheme for Objective Test
1. D 11. A
2. B 12. D
3. B 13. A
4. C 14. B
5. C 15.C
6. D 16.C
7. A 17.B
8. A 18.B
9. C 19.B
10. B 20.T
Marking Scheme for theory
1 a (1) Hardware: The computer system(s) that the DBMS and the application programs
run on. This can range from a single PC, to a single mainframe, to a network of
computers.
(2) Software: The DBMS software and the application programs, together with the
operating system, including network software if the DBMS is being used over a network.
(3) Data: The data acts as a bridge between the hardware and software components and
the human components. As we’ve already said, the database contains both the operational
data and the meta-data (the ‘data about data’).
(4) Procedures: The instructions and rules that govern the design and use of the
database. This may include instructions on how to log on to the DBMS, make backup
copies of the database, and how to handle hardware or software failures.
(5) People: This includes the database designers, database administrators (DBAs),
application programmers, and the end-users.
2marks each (10marks)
1b (a) data
Data constitutes all the different values connected with the various objects/entities
that are of concern to user.
Or
Known fact that can be recorded and have implicit meaning
(b) Database
A shared collection of logically related data (and a description of this data),
designed to meet the information needs of an organization.
(c) Database management system
A software system that: enables users to define, create, and maintain the database
and provides controlled access to this database.
(d) Application program
A computer program that interacts with the database by issuing an appropriate
request (typically an SQL statement) to the DBMS.
(e) Database system
Database system is a collection of the application program, DBMS and the
operating system 2marks each (10marks)
2 (a)
i. A data definition language (DDL) - For defining the database structure.
ii. A data manipulation language (DML) -for retrieving and updating data
4marks
2 b (i)
1. The table has a name that is distinct from all other tables in the database.
2. Each cell of the table contains exactly one value. (For example, it would be wrong to
store several telephone; numbers for a single branch in a single cell. In other words,
tables don’t contain repeating groups of data. A relational table that satisfies this
property is said to be normalized or in first normal form.)
3. Each column has a distinct name.
4. The values of a column are all from the same domain.
5. The order of columns has no significance. In other words, provided a column name is
moved along with the column values, we can interchange columns.
6. Each record is distinct; there are no duplicate records
(10marks)
2 b (ii) an entity is a set of objects with the same properties and is identified by
organization or a company as having independent existence
2 c. The primary key is the candidate key that is selected to identify tuples uniquely within
a relation
Making scheme for practical
Books Authors
ISBN Title Price AuId AuName AuTel
Publisher Coauthor
PubID PubName PubTel CoauID CoauTel CoauName