0% found this document useful (0 votes)
26 views4 pages

S3 Database (2023) - Assignment 1 (Teacher Verison)

Uploaded by

tszyuet yan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views4 pages

S3 Database (2023) - Assignment 1 (Teacher Verison)

Uploaded by

tszyuet yan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

P.

HKTA Tang Hin Memorial Secondary School


S3 Computer Literacy – Database 2023
Assignment 1 (Chapter 1 - 2)

Name: ________________ Class: ________( ) Marks: ________ / 33

Section A - Fill in the blank (6 marks)

1. _______(a)______ key of a table is a set of fields that is a _______(b)______ value and can
be used to identify a record.

2. The hierarchical order of data storage unit from top to bottom is database,
_______(a)______, records and ______(b)_______.

3. Each field in a table is associated with a specific ________________ that defines the kind of
data that can be stored in that column.

4. The design view displays the table structure while the _________________ view displays
the data stored inside the table.

Question 1(a) 1(b) 2(a) 2(b) 3 4


Primary unique tables fields datatype datasheet
Answer

Section B – Multiple Choice (5 marks)

1. Which of the following is a primary function of a database?


A. Storing and organizing data*
B. Performing calculations
C. Creating charts and graphs
D. Sending emails

2. Which of the following is the best primary key for the members table of a chain store?
A. Member’s name
B. E-mail address*
C. occupation
D. address
P.2

3. Which of the following can set field names, data types and field sizes?
A. Design view*
B. Datasheet view
C. Filter
D. Report

4. Which of the following is/are example (s) of DBMS?


(I) MS Access
(II) MS Excel
(III) MYSQL
A. (I) only
B. (I) and (II)
C. (II) and (III)
D. (I) and (III) *

5. What is a composite key?


A. A key formed by combining multiple fields to uniquely identify a record. *
B. A key that is automatically generated by the database system.
C. A key used for sorting data in ascending order.
D. A key that allows duplicate values.

MC Question 1 2 3 4 5
ANS A B A D A

Section C – Short Question (22 marks)


1. Suggest three characteristics of a primary key.
It is Unique. It should not be null. A table should have one and only one keyfield.

(3 marks)

2. Suggest two differences between spreadsheet and database software.


Database is designed for storing large amount of data but spreadsheet is not.

Each field in a database table store one type of data but spreadsheet is not.

Each row is a record and column is a field in database but no restriction in spreadsheet.
(2 marks)
P.3

3. Mr. Chan creates a database table as with the following fields:


✓ Name of student ( not more than 30 characters )
✓ Telephone number ( 8-digit )
✓ Student ID ( “0000” to “9999” )
✓ Prefect ( e.g. Yes / No )
✓ Age ( 13-19 )

(a) Complete the following table.


Field Name Field Type Field Size Format
Student_name Short Text 30
Tel_no Short Text 8
Student_ID Short Text 4
Prefect Yes/No Yes / No
Age Number Integer
(5 marks)

(b) Someone suggested that Age should be in Short Text datatype. Do you agree? Why?
No. Cannot be sorted properly according to the values(e.g. ‘1’,’11’,’2’,’22’,…)

Non-numeric numbers can be stored. This leads to error in calculation.


(2 marks)

(c) Suggest 1 primary key for the table. Explain briefly.


Student_ID because it is unique for every student.

(2 marks)

(d) Age is not suggested to be a field in the above table. Suggest a reason for that and
suggest another field to replace it.
Age changes every year. Date of birth can be used for replacement.

(2 marks)

(e) John suggests that HKID no. can be used as the primary key but Mr. Chan disagrees.
Suggest the reason.
HKID no. is students' privacy.
(1 mark)
P.4

4. Peter is a librarian. He would like to design a database to store the data of books for his library.
The table below shows his design.
Field Name Data Type Field Size Primary key?
the_name_of_the_book Short Text 20 Yes
the_author_of_ the_book Short Text 50 No
the_quantity_of_ the_book Short Text 3 No
the_ISBN_of_ the_book Short Text 13 No

In the design, suggest three areas that need improvement and suggest an alternative for those
areas.
Field name is too long. It should be short and simpler.

Book name is not unique. Primary key should be ISBN.

Quantity of book should be in number format.

(3 marks)

5. John is the owner of a restaurant. He would like to design a database to store the data of the
cuisine sold in his restaurant.
(a) Suggest a suitable data type for each of the following fields. (4M – 1M for each)
Field Name Description Data Type Field Size
Name The name of the cuisine Short Text 20
Ingredient The ingredients of the cuisine Short Text 90
Price The prices of the cuisine Number Single
onsale Whether the cuisine is on sale Yes/No

(b) John would like to add a new field of data type AutoNumber and assign it to be the primary
key. Do you agree? Why? (2 marks)
Yes. It is because all four fields are not suitable to be the primary key. (1M) because none

of them are unique. (1M)


(2 marks)

~ END OF PAPER ~

You might also like