Database and file concepts – A Level Information Technology (9626)
114 questions · page 3 of 8 · Clear filters
Question text
1
A company secretary is creating a new database of workers to record:
•
their six digit ID number
•
the date they joined the company
•
their rate of pay per hour up to a maximum rate of $50 per hour.
She has entered data from a source document into the database. There was an error in record 3
and an error in record 4 in the source document. The secretary also made an error when copying
record 1.
Source document
Database
Record
ID number
Date joined
Rate of
ID_number
Date_joined
Rate_of_
pay
pay
1
147563
13/06/2019
35
147563
13/06/2020
35
2
163459
09/10/2019
28
163459
09/10/2019
28
3
1827697
15/08/2020
31
1827697
15/08/2020
31
4
221524
23/12/2020
56
221524
23/12/2020
56
5
256817
27/07/2021
15
256817
27/07/2021
15
Using this data, explain, in detail, the need for verification and validation when entering data into a
database.
…
…
…
…
…
…
…
…
…
…
…
…
…
… [6]
Question text
7
Louisa, a teacher with limited IT knowledge, has created a simple database of her students. The
database contains the names of her students and the results of their latest test.
She prints out the names of the students who have passed the latest test by gaining a mark of 40
or more.
When she created the database, she considered creating a dynamic parameter query to produce
her printout. However, she decided to create a static parameter query.
Explain why this was a good decision.
…
…
…
…
…
…
…
…
…
…
…
… [5]
Question text
8
Students often transfer files between different word processing and database packages.
Justify the need for generic file formats for the transfer of files between different packages.
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
… [8]
Question text
6
When searching a database it is possible to use different types of query.
Describe the differences between simple and complex queries.
…
…
…
…
…
…
…
…
…
… [4]
Question text
5
D’Oliveira Inc. is a company which sells stationery products to many stores. The company uses a
transaction file to keep a record of the number of products it has sold each month.
Part of a transaction file is shown. It contains:
•
ProductID
•
NumberSold (the number of that product sold in a particular month)
Part of the master file used by the company is also shown. It contains:
•
ProductID
•
Product (description of product)
•
NumberinStock (how many of that product are left in stock)
The NumberinStock on the new master file is calculated every month by subtracting the
NumberSold from the NumberinStock on the old master file.
Transaction file
Master File
ProductID
NumberSold
ProductID
Product
NumberinStock
2210
6500
1965
Folder wallets
9000
3356
7300
2210
Ring binders
12000
4268
2900
2976
Notepads
10100
5690
4600
3356
A4 paper
13450
4268
A3 paper
8800
5690
HB pencils
9200
6528
Pencil cases
11150
7649
Maths sets
8240
Fig. 5.1
(a) Identify the two processes that would have been performed on the transaction file before the
master file could be updated.
…
… [1]
(b) List the steps involved when the master file is updated using the transaction file. Use the data
shown in Fig. 5.1. Stop at the step where the third master file record is read.
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
Question text
8
Peter wants to create a database containing the details of all the books he owns and the shops he
bought them from. Mary suggests that he should create a relational database. Peter will need to
use normalisation.
(a) Describe what is meant by normalisation.
…
…
…
…
…
…
…
…
…
… [4]
(b) Describe the benefits of creating a relational database rather than a flat file database.
…
…
…
…
…
…
…
…
…
…
…
…
…
… [6]
Question text
10 Describe what is meant by the term open source file format. Include in your answer an explanation
of why open source file formats are needed.
…
…
…
…
…
…
…
…
…
…
…
… [5]
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
Assessment International Education Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download
at www.cambridgeinternational.org after the live examination series.
Cambridge Assessment International Education is part of Cambridge Assessment. Cambridge Assessment is the brand name of the University of Cambridge
Question text
3
Most companies use transaction files to update master files in their payroll systems. One part of
the updating process is to calculate weekly or monthly pay. Another part is to update workers’
personal and work details.
Without referring to the calculation of pay, describe the three types of transaction that would
take place when workers’ details are being updated. You must give an example for each type of
transaction.
Transaction type 1: …
…
Example 1: …
…
Transaction type 2: …
…
Example 2: …
…
Transaction type 3: …
…
Example 3: …
…
[6]
Question text
8
Maria has been asked to write a word-processed report for her homework. She needs to choose
between using proprietary software and open source software.
Describe the differences between these two types of software.
…
…
…
…
…
…
…
…
…
…
…
…
…
… [6]
Question text
5
The owner of a book shop has created a database of her books. She will now test that it works.
Some of the records are shown. The data shown contains the maximum and minimum values.
There are only two types of book.
Title
Author
Book_type
Copies
ISBN
Lee Child
H
Blue Moon
9781787632196
4
5
Isaac Asimov
P
Prelude to Foundation
9781858683416
3
9780593072493
Dan Brown
H
Inferno
2
James Patterson
P
9781787461352
Revenge
H
5
David Baldacci
9781529027488
One Good Deed
(a) Describe, in detail, the three most appropriate validation checks, apart from a check digit,
type check or presence check, that could be used to validate the data. For each validation
check, your description should include the field it could be used for. Each validation check
and each field must be different.
1 …
…
…
…
…
…
2 …
…
…
…
…
…
3 …
…
…
…
…
…
[6]
(b) The owner will also need to verify the data in her database.
Using examples from the three fields you used in part (a), explain why verification is needed
in addition to validation.
…
…
…
Question text
4
A supermarket uses a computer to automatically update stock levels. Each record in the Product
file contains the fields shown.
Product file
Bar_code
Product
Number_in_stock
Reorder_level
Reorder_quantity
Supplier_ID
5022476130067
Oaters
131
130
250
B671841
0100108097858
Tea
182
130
310
A296593
0201570244453
Beans
317
212
450
C562148
When the Number_in_stock of a product item falls to the Reorder_level, that product must be
reordered. The Reorder_quantity is the number of items of the product that must be reordered.
The Supplier file contains the contact details of all the suppliers.
Supplier file
Supplier_ID
Supplier
Contact
B671841
J Sullivan
[email protected]
A296593
Bluants
[email protected]
C562148
Golan
[email protected]
Only some of the records in the Product and Supplier files are shown.
Describe, using the Oaters record as an example, the steps the computer would follow to update
the Product file after a point of sale terminal reads the bar code for a packet of Oaters.
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
… [7]
Question text
9
Many companies use computers to process their payroll.
A transaction file is produced once a week. It consists of the WorkerID and HoursWorked fields.
The master file contains the WorkerID, RateOfPay and WagesSoFar fields as well as other details.
The WagesSoFar field represents how much each worker has earned so far this year.
Each worker’s wage is calculated by multiplying the HoursWorked by the RateOfPay. When the
wage for that week is calculated, it is added on to the WagesSoFar field.
Every week the master file has to be updated to include the new wage earned so far this year.
(a) Complete the following pseudocode algorithm which shows the process of updating the
master file. You can assume no other transactions are being carried out.
READ first record in transaction file
READ first record in old master file
WHILE not end of transaction file
IF transaction file WorkerID = master file WorkerID
THEN
…
…
…
…
…
…
…
…
…
…
…
…
…
… [6]
(b) Updating a master file in a payroll system is an example of batch processing.
Discuss the advantages and disadvantages of using batch processing, compared to other
types of processing, for a payroll system.
…
…
…
…
…
…
Question text
10 Normalisation is used when designing relational databases.
Discuss the advantages and disadvantages of normalisation.
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
… [8]
Question text
10 (a) Define the following database terms.
(i)
One-to-one relationship
…
…
… [1]
(ii)
One-to-many relationship
…
…
… [1]
(iii)
Compound key
…
…
… [1]
(b) Explain how a many-to-many relationship can be created in a database.
…
…
…
…
…
…
… [3]
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
Assessment International Education Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download
at www.cambridgeinternational.org after the live examination series.
Cambridge Assessment International Education is part of Cambridge Assessment. Cambridge Assessment is the brand name of the University of Cambridge
Question text
13 Here is an extract from a table which is part of a relational database. It requires the use of a
compound key.
Studentid
Second_name
Coursecode
L03127
Gimenez
MAT
L03218
Driscoll
CHE
L03313
De Silva
PHY
L03214
Alicante
BIO
L03127
Gimenez
CHE
Analyse, including its effectiveness, the function of a compound key. Refer to the extract in your
answer.
…
…
…
…
…
…
…
…
…
…
…
…
…
… [6]
Please turn over for Question 14.