0% found this document useful (0 votes)
166 views

IDB Sample Exam Question PDF

fafdasfwfr

Uploaded by

newarsahil34
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
166 views

IDB Sample Exam Question PDF

fafdasfwfr

Uploaded by

newarsahil34
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

CT042-3-1-Introduction to Database Final Exam Page 1 of 7

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.

1) Data management is a discipline that focuses on the ____.


a. management of end users
b. generation, storage, and retrieval of data
c. help items to be used by end users
d. generation, storage, and retrieval of information

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

3) A ____ system is composed of software, hardware, procedures, and people.


a. software
b. computer
c. file
d. database

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?

a. Lecturer, Student, Course, Subject


b. University, Lecturer, Student, Course
c. Student, Course, Subject
d. Lecturer, Student, University

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

6) A raw fact, such as an invoice date, is known as ____.


a. information
b. a relationship
c. a record
d. data

Level 1 Asia Pacific University of Technology & Innovation


This study source was downloaded by 100000891083282 from CourseHero.com on 09-18-2024 21:47:33 GMT -05:00
202109

https://www.coursehero.com/file/139314614/IDB-Sample-Exam-Questionpdf/
CT042-3-1-Introduction to Database Final Exam Page 2 of 7

7) A relational database is a group of ____.


a. common fields
b. field values
c. records
d. tables

8) A table is a matrix consisting of a series of row and column ____.


a. links
b. intersections
c. systems
d. models

9) A relational database model ____.


a. does not require substantial hardware and system software overhead
b. does not promote "islands of information" problems
c. allows trained people to use a good system poorly
d. lets the user operate in a human logical environment

10) Database models were developed to ____.


a. model real-world events or conditions
b. deposit data within a single file
c. keep data within multiple data repositories
d. allow DBMSs to maintain loose control over the database activities

11) Each row in the relational table is known as an entity ____.


a. instance
b. relationship
c. attribute
d. model

12) Which model represents the end user’s view of the database?
a. Internal
b. Conceptual
c. Physical
d. External

13) Which model operates at the lowest level of abstraction?


a. Conceptual
b. Internal
c. External
d. Physical

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.

Level 1 Asia Pacific University of Technology & Innovation


This study source was downloaded by 100000891083282 from CourseHero.com on 09-18-2024 21:47:33 GMT -05:00
202109

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

15) Given the tables below:

Employee (EmpID, Name, Gender, SupervisorID), EmpID is the primary key,


SupervisorID is the foreign key

Dependent (DepID, EmpID, DepName, DepDOB), (DepID&EmpID) is the primary


key, EmpID is also a foreign key

Project(ProID, Name, SupervisorID), ProID is the primary key, SupervisorID is the


foreign key

Supervisor(SupervisorID, Name), SupervisorID is the primary key

Which entity is likely to be a weak entity?

a. Dependent
b. Employee
c. Project
d. Supervisor

16) Which of the following statements are TRUE about an ERD?


i. Relationship names are not shown on an ERD
ii. When reading a Relationship between two entities, the relationship is read
both from left to right and right to left
iii Relationship Cardinality specifies whether something is required or not
iv Relationships always exist between two entities (or one entity and itself)
a. a.A ii and iii
b. b.B iii and iv
c. c.C ii and iv
d. d.D i and iv

17) Which of the following business rules represent the above Entity Relationship
Diagram?

a. An ID CARD is issued to a STUDENT. A STUDENT receives an ID


CARD. A STUDENT may study many MODULEs. A MODULE may be
studied by many STUDENTs. A MODULE LEADER leads one or more
MODULEs. A MODULE must have one MODULE LEADER

Level 1 Asia Pacific University of Technology & Innovation


This study source was downloaded by 100000891083282 from CourseHero.com on 09-18-2024 21:47:33 GMT -05:00
202109

https://www.coursehero.com/file/139314614/IDB-Sample-Exam-Questionpdf/
CT042-3-1-Introduction to Database Final Exam Page 4 of 7

b. An ID CARD is issued to a STUDENT. A STUDENT receives an ID


CARD. A STUDENT studies one or more MODULEs. A MODULE is
studied by one or more STUDENTs. A MODULE LEADER leads one or
more MODULEs. A MODULE must have one MODULE LEADER

c. An ID CARD is issued to a STUDENT. A STUDENT receives an ID


CARD. A STUDENT studies one or more MODULEs. A MODULE is
studied by one or more STUDENTs. A MODULE LEADER may lead
many MODULEs. A MODULE must have one MODULE LEADER

d. An ID CARD may be issued to a STUDENT. A STUDENT may receive


an ID CARD. A STUDENT studies one or more MODULEs. A MODULE
is studied by one or more STUDENTs. A MODULE LEADER leads one
or more MODULEs. A MODULE must have one MODULE LEADER

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.

19) Given the table below:


Product (ProductID, Name, Description, SerialNumber),
Which attribute could be the candidate key based on the business rules below?
• Some products may have the same name
• No product could have the same serial number
• Product description could be a null
• ProductID must be unique

a. ProductID & SerialNumber


b. ProductID & Name
c. SerialNumber & Description
d. SerialNumber & Name

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:

a. Making the relationship between LECTURER and CLASS fully mandatory on


both sides.
b. Making the relationship between LECTURER and CLASS fully optional on both
sides.

Level 1 Asia Pacific University of Technology & Innovation


This study source was downloaded by 100000891083282 from CourseHero.com on 09-18-2024 21:47:33 GMT -05:00
202109

https://www.coursehero.com/file/139314614/IDB-Sample-Exam-Questionpdf/
CT042-3-1-Introduction to Database Final Exam Page 5 of 7

c. Making the relationship between LECTURER and CLASS mandatory on the


CLASS side.
d. Making the relationship between LECTURER and CLASS mandatory on the
LECTURER side.

(Total: 40 marks)

SECTION B
This section carries SIXTY (60) marks.
Each question carries TWENTY (20) marks. Answer ALL questions.

Question B1

a) Using appropriate examples, differentiate between Transactional Database and Data


Warehouse
(6 marks)

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)

Level 1 Asia Pacific University of Technology & Innovation


This study source was downloaded by 100000891083282 from CourseHero.com on 09-18-2024 21:47:33 GMT -05:00
202109

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:

Table Name: CAR


RegistrationNum Make Model YearOfManufacture
ABU 2522 Hyundai Elantra 2015
ABA 1978 Honda City 2016
WKC 6256 Perodua Kancil 2017
AEM 7778 Perodua Kenari 2016
BDQ 8787 Hyundai Sonata 2015
WJH 3465 Hyundai Sonata 2016

Table Name: RENTAL


RecID RegistrationNum CustCode MilesDriven DateHired
100 ABU 2522 E100 2300 2018-02-05
122 ABA 1978 C100 1200 2018-02-06
123 WKC 6256 K201 100 2018-02-07
133 AEM 7778 K202 550 2018-02-08
145 BDQ 8787 S101 50 2018-02-10
146 WJH 3465 S105 900 2018-02-12
177 WKC 6256 E100 700 2018-02-24

Table Name: CUSTOMER


CustCode CustName Location
E100 S.J.Salim Selangor
C100 Harish Perak
K201 Su Chin Kuala Lumpur
K202 Mohd Salleh Selangor
S101 Ramakrishna Perak
S105 John Brown Kelantan

Based on the tables above, write SQL statements for the following queries:

a. How many cars of each make were manufactured in 2017?


(4 marks)

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.

Level 1 Asia Pacific University of Technology & Innovation


This study source was downloaded by 100000891083282 from CourseHero.com on 09-18-2024 21:47:33 GMT -05:00
202109

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)

Level 1 Asia Pacific University of Technology & Innovation


This study source was downloaded by 100000891083282 from CourseHero.com on 09-18-2024 21:47:33 GMT -05:00
202109

https://www.coursehero.com/file/139314614/IDB-Sample-Exam-Questionpdf/
Powered by TCPDF (www.tcpdf.org)

You might also like