Database and file concepts – A Level Information Technology (9626)
Question text
9
Wilhelm has tried importing a word-processed file into his spreadsheet but the software gives the
error message ‘file format not valid’.
Explain why this has happened and explain what Wilhelm should do to his data to enable him to
load it into his spreadsheet.
…
…
…
…
…
…
…
…
…
… [4]
Question text
10 Here is a table of data about individuals and their families which is being converted into a database.
Family_name
First_name
C
D
E
F
Gustoffsson
Gunnar
18/05/1957
M
Divorced
2
0
Sandhu
Jasvinder
09/08/1988
F
Single
0
Otieno
Peter
27/12/2001
M
Single
Qabbani
Nizar
01/01/1990
M
Married
3
Wanjeku
Jane
22/05/1994
F
Married
4
Garcia
Francesca
12/11/1986
F
Married
5
0
Potter
James
17/10/1992
M
Married
Suggest suitable field names for C, D, E and F. For each field, state an appropriate data type
and give a reason for your choice. For each field, state, with a reason, the number of bytes the
database would need to allocate for the data to be stored.
(i) C …
…
…
…
… [2]
(ii) D …
…
…
…
… [2]
(iii) E …
…
…
…
… [2]
(iv) F …
…
…
…
… [2]
Question text
14 Imran has developed a simple library database system which contains information about the
books. Each record contains the following data:
Book title, author, ISBN, borrowed (Y/N), date borrowed, borrower number.
Design an appropriate online data entry form for one book, clearly indicating the amount of space
required for each field. Your design must represent a computer screen and, where appropriate,
allow the user to enter data by clicking the mouse rather than entering text.
[8]
Question text
15 Frida has been given the task of creating a database to store all her company’s customer records
and sales records. She is going to produce a relational database.
The customer records will have the fields Customer_id, Name, Contact_phone and
Card_number.
The sales records will have the fields Invoice_number, Item_number, Item_description,
Item_cost and Customer_ref.
(a) Complete the diagram below to show how the tables will be combined.
[4]
(b) Describe how you would create the relational database in part (a).
…
…
…
…
…
…
…
…
… [4]
Permission to reproduce items where third-party owned material protected by copyright is included has been sought and cleared where possible. Every
publisher will be pleased to make amends at the earliest possible opportunity.
To avoid the issue of disclosure of answer-related information to candidates, all copyright acknowledgements are reproduced online in the Cambridge International
Examinations Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download at www.cie.org.uk after
the live examination series.
Cambridge International Examinations is part of the Cambridge Assessment Group. Cambridge Assessment is the brand name of University of Cambridge Local
Question text
1
Tick the four true statements referring to the use of data types when creating a database.
3
Boolean is a data type representing either of two states.
Text fields cannot contain numbers.
Numeric fields cannot contain text.
Integer is a numeric data type used for storing decimal numbers.
Date is a data type which can be used for storing images.
The real number data type is used for fields containing whole numbers only.
The numeric data type can be subdivided into different types of number.
The alphanumeric data type can contain punctuation marks.
The text data type is the easiest type of data to validate.
Currency must be stored as text.
[4]
Question text
2
Tick the four true statements relating to the use of normalisation when organising the attributes
and tables of a relational database.
3
A table that has not got a unique key can still be in first normal form.
Normalisation does not attempt to eliminate storing the same data in more than one
table.
Normalisation involves breaking down a table into less redundant, smaller tables.
A table is in first normal form if it contains no repeating groups.
A table is in second normal form if it is in first normal form and, additionally, does
not have a composite primary key.
A table in first normal form must use all the relationships, one-to-one, one-to-many
and many-to-one.
A database is in third normal form if it is in second normal form and each table has
no non-key attributes that depend upon other non-key attributes.
A third normal form table can still have non-key attributes dependent on other
non-key attributes.
Third normal form tables can still have non-key fields that do not depend on the
primary key.
Every table in a relational database must have a foreign key.
[4]
Question text
7
Atat Iron Ltd uses computers to process its payroll. The company pays its workers weekly which
involves the updating of a master file.
Two sets of data are shown below.
The first set represents part of a transaction file containing workers’ ID numbers and the hours
worked by those workers in a particular week.
The second set represents part of the master file used by the company. This shows the workers’
ID numbers, departments they work in and the rate per hour at which they are paid in Indian
Rupees ( ).
Transaction file
Master file
Workers_ID_number
Hours_worked
Workers_ID_number
Department
Hourly_rate ( )
047006
40
031597
Extrusion
62
486439
40
047006
Cold rolling
55
592786
38
131654
Extrusion
62
758789
40
235804
Foundry
50
512759
37
239412
Foundry
50
869891
40
243303
Hot rolling
58
471584
38
471584
Cold rolling
55
131654
40
486439
Tube production
65
243303
40
500368
Extrusion
62
235804
35
512759
Tube production
65
592786
Foundry
50
758789
Tube production
65
869891
Extrusion
62
942378
Hot rolling
58
(a) Describe what processes must happen before the updating can begin.
…
…
…
…
… [2]
(b) Using this data, explain how a transaction file is used to update a master file in a payroll
system. You may assume that the only transaction being carried out is the calculation of the
weekly pay before tax and insurance deductions.
…
…
…
…
…
…
…
…
…
…
…
…
…
Question text
9
Theresa has created a database query which searches for the surname “Johnson”.
Surjit has told her that this is a static parameter query.
Explain what is meant by static parameter query and why she should change to using a dynamic
parameter query.
…
…
…
…
…
…
…
…
…
…
…
…
…
… [6]
Question text
10 Below is an extract from a database of students who have chosen to study Maths at AS Level. The
database is in unnormalised (0NF) form.
Student
Name
Second subject
Third subject
number
1001
Eashan Wadhwa
Chemistry
Physics
1002
Karan Bansal
Physics
Chemistry
1003
Manan Malik
Chemistry
Biology
1004
Neel Bhatia
Biology
Chemistry
1005
Ridhima Shekhar
History
Biology
1006
Rohin Pannu
Geography
History
1007
Saransh Anand
History
Geography
1008
Shraddha Aggarwal
Biology
Chemistry
1009
Rekha Pooja
Physics
Chemistry
1010
Sundar Rakshana
Physics
Chemistry
Describe the characteristics of the data above which make it unnormalised and explain how it can
be transformed into first normal form (1NF).
…
…
…
…
…
…
…
…
…
…
…
…
…
… [6]