IDB Sample Exam Question PDF
IDB Sample Exam Question PDF
SECTION A
This section carries FORTY (40) marks.
Each question carries TWO (2) marks. Answer ALL questions.
Multiple Choices
Identify the choice that best completes the statement or answers the question.
2) John is working in the customer table and needs to know what customers are located
in Florida. To find the information, he would ____.
a. create a new table
b. create a new form
c. create a new query
d. utilize the Database Wizard
4) "In a university, all lecturers supervise many students, the student can only enrol in
one course, each course has many subjects."
Which are the entities that could be identified from the above scenario?
5) Where does the DBMS store the definitions of data elements and their relationships?
a. Data file
b. Index
c. Data dictionary
d. Data map
https://www.coursehero.com/file/139314614/IDB-Sample-Exam-Questionpdf/
CT042-3-1-Introduction to Database Final Exam Page 2 of 7
12) Which model represents the end user’s view of the database?
a. Internal
b. Conceptual
c. Physical
d. External
14) John: “I would like to have a database which stores my company historical data and
able to perform statistical analysis to predict the future trend so that we could use it
for strategic decision”.
Which database best suits John’s requirements.
https://www.coursehero.com/file/139314614/IDB-Sample-Exam-Questionpdf/
CT042-3-1-Introduction to Database Final Exam Page 3 of 7
a. Data warehouse
b. Transactional database
c. Hierarchical database
d. Network database
a. Dependent
b. Employee
c. Project
d. Supervisor
17) Which of the following business rules represent the above Entity Relationship
Diagram?
https://www.coursehero.com/file/139314614/IDB-Sample-Exam-Questionpdf/
CT042-3-1-Introduction to Database Final Exam Page 4 of 7
18) Which of the following is least likely to be a business rule as relates to data
modelling?
a. Casual Fridays take place in the summer.
b. A training session cannot be scheduled for fewer than 10 employees or more
than 30 employees.
c. A machine operator may not work more than 10 hours in a 24-hour period.
d. A customer may make many payments on an account.
20) A business rule such as "Each LecturerID is associated with min 1 or max 3 classes.
ClassID is associated with 1 and only 1 LecturerID” is best enforced by:
https://www.coursehero.com/file/139314614/IDB-Sample-Exam-Questionpdf/
CT042-3-1-Introduction to Database Final Exam Page 5 of 7
(Total: 40 marks)
SECTION B
This section carries SIXTY (60) marks.
Each question carries TWENTY (20) marks. Answer ALL questions.
Question B1
a) Consider the following example, for orders placed for products by customers:
OrderNo OrderDate CustomerNo CustomerName CustomerCity PartNo Description Price Qty
1 5/1/2014 22 Jane Smith London A95 Jacket 55 4
G17 Coat 120 8
K10 Suit 90 5
2 19/1/2014 47 Jones Brown Paris G17 Coat 120 9
D77 Shirt 35 10
3 19/1/2014 22 Jane Smith London E30 Tie 5 25
D77 Shirt 35 4
4 22/1/2014 35 Joseph Green Paris D89 Shirt 55 10
Normalise the un-normalised data above into third normal form (3NF). Clearly show all
steps taken in the normalisation process.
(14 marks)
(Total: 20 marks)
https://www.coursehero.com/file/139314614/IDB-Sample-Exam-Questionpdf/
CT042-3-1-Introduction to Database Final Exam Page 6 of 7
Question B2
Consider the following tables which are a part of a car rental database:
Based on the tables above, write SQL statements for the following queries:
b. List the names of customers who had not driven a particular car more than 1000
miles on a single journey.
(4 marks)
c. List the names of all customers who had placed more than 1 car rental booking.
https://www.coursehero.com/file/139314614/IDB-Sample-Exam-Questionpdf/
CT042-3-1-Introduction to Database Final Exam Page 7 of 7
(4 marks)
d. Write the DDL statement to create the RENTAL table shown above. Include
appropriate constraints in the table.
(4 marks)
e. Show all customers’ details who rented the car made from Perodua and model is
Kancil.
(4 marks)
(TOTAL: 20 MARKS)
Question B3
a) Given the keys in a relational table below, briefly explain each of them with an
example.
i. Primary key
ii. Foreign Key
iii. Candidate key
(9 marks)
b) Using the Chen or Crow foot notation methodology, create an ERD that can be
implemented for a medical clinic, using at least the following business rules:
• A patient can make many appointments with one or more doctors in the clinic, and
a doctor can accept appointments with many patients. However, each appointment
is made with only one doctor, and each appointment references a single patient.
• Emergency cases do not require an appointment. However, for appointment
management purposes, an emergency is entered in the appointment book as
“unscheduled.”
• If kept, an appointment yields a visit with the doctor specified in the appointment.
The visit yields a diagnosis and, when appropriate, treatment.
• With each visit, the patient’s records are updated to provide a medical history
• Each patient visit creates a bill. Each patient visit is billed by one doctor, and each
doctor can bill many patients.
• Each bill must be paid. However, a bill may be paid in many installments, and a
payment may cover more than one bill.
• A patient may pay the bill directly, or the bill may be the basis for a claim submitted to
an insurance company.
• If an insurance company pays the bill, the deductible is submitted to the patient for
payment.
(11 marks)
(Total: 20 marks)
https://www.coursehero.com/file/139314614/IDB-Sample-Exam-Questionpdf/
Powered by TCPDF (www.tcpdf.org)