0% found this document useful (0 votes)
9 views46 pages

2.4 Data Bases

The document is a compilation of topical past papers for O Levels Computer Science, edited by Muhammad Jawwad and compiled by Engr. Shahzadah Ashraf Bande’Shah. It includes various database-related questions and exercises, covering topics such as primary keys, data types, and query-by-example grids. The document serves as a resource for students preparing for their examinations.

Uploaded by

zaiyan asadi
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)
9 views46 pages

2.4 Data Bases

The document is a compilation of topical past papers for O Levels Computer Science, edited by Muhammad Jawwad and compiled by Engr. Shahzadah Ashraf Bande’Shah. It includes various database-related questions and exercises, covering topics such as primary keys, data types, and query-by-example grids. The document serves as a resource for students preparing for their examinations.

Uploaded by

zaiyan asadi
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/ 46

O LEVELS 2210

COMPUTER SCIENCE TOPICAL PAST


Compiled By: Engr. Shahzadah Ashraf Bande’Shah PAPERS
Edited By: Muhammad Jawwad BOOK 2.4

[All Variants Included + Marking


Schemes]

STUDENTS NAME:

_____________________________________________

For More Resources:

SCHOOL NAME: https://www.bandashah.com

_____________________________________________

Join Our Facebook Page:


https://www.facebook.com/groups/
DATE ISSUED: olevelcomputers/

_____________________________________________
Follow On Facebook :
https://www.facebook.com/shahza
CONTACT NUMBER: dah.ashraf

_____________________________________________

shahzadah.ashraf +92333 2076121


@gmail.com
7 A database, PROPERTY, was set up to show the prices of properties for sale and the features of
each property. Part of the database is shown below.

Brochure Number of Number of Price


Property Type Garden Garage
No Bedrooms Bathrooms in $
Bungalow B17 7 4 Yes Yes 750,000
Apartment A09 2 1 No No 100,000
House H10 4 2 Yes No 450,000
House H13 3 2 Yes No 399,000
Apartment A01 2 2 No Yes 95,000
Apartment A16 1 1 No No 150,000
House H23 3 1 No Yes 250,000
House H46 2 1 Yes Yes 175,000

(a) Give the number of fields that are in each record.

...............................................................................................................................................[1]

Question is continued on the next page

2210/21/M/J/15
(b) State which field you would choose for the primary key.

...................................................................................................................................................

Give a reason for choosing this field.

...................................................................................................................................................

...............................................................................................................................................[2]

(c) State the data type you would choose for each of the following fields.

Garage .....................................................................................................................................

Number of Bedrooms .............................................................................................................

Price in $ ..............................................................................................................................[3]

(d) The query-by-example grid below selects all houses with more than 1 bathroom and more
than 2 bedrooms.

Number of Number of
Field: Property Type Price in $ Brochure No
Bedrooms Bathrooms
Table: PROPERTY PROPERTY PROPERTY PROPERTY PROPERTY
Sort: Ascending
Show:  
Criteria: = 'House' >2 >1
or:

Show what would be output.

...................................................................................................................................................

...............................................................................................................................................[2]

(e) Complete the query-by-example grid below to select and show the brochure number, property
type and price of all properties with a garage below $200,000.

Field:
Table:
Sort:
Show:
Criteria:
or:
[4]

2210/21/M/J/15
6 A database, MARKS, was set up to record the test results for a class of students. Part of the
database is shown below.

Student Name Class ID Maths English Science History Geography


Paul Smith 0017 70 55 65 62 59
Ravi Gupta 0009 29 34 38 41 44
Chin Hwee 0010 43 47 50 45 52
John Jones 0013 37 67 21 28 35
Diana Abur 0001 92 88 95 89 78
Rosanna King 0016 21 13 11 27 15

(a) Give the number of fields that are in each record.

...............................................................................................................................................[1]

(b) State which field you would choose for the primary key.

...................................................................................................................................................

Give a reason for choosing this field.

...................................................................................................................................................

...............................................................................................................................................[2]

(c) The query-by-example grid below selects all students with more than 60 marks in History or
more than 60 marks in Geography.

Field: Student Name History Geography

Table: MARKS MARKS MARKS

Sort: Ascending

Show: ✓
Criteria: >60

or: >60

Show what would be output.

...................................................................................................................................................

...............................................................................................................................................[2]

2210/22/M/J/15
(d) Complete the query-by-example grid below to select and show the student names only of all
students with less than 40 marks in both Maths and English.

Field:
Table:
Sort:
Show:
Criteria:
or:
[3]

2210/22/M/J/15
6 A database, STAFFPHONE, was set up to show the telephone extension numbers for members of
staff working in a department store.

Name Department Extension number


Jane Smith Toys 129
Sue Wong Books 124
David Chow Toys 129
Amy Tang Household 123
Joe Higgs Books 124
Jane Smith Shoes 125
Adel Abur Shoes 125
Peter Patel Toys 129

(a) Explain why none of the fields in the database can be used as a primary key.

...................................................................................................................................................

...................................................................................................................................................

...............................................................................................................................................[2]

(b) State a field that could be added as a primary key.

...................................................................................................................................................

Give a reason for choosing this field.

...................................................................................................................................................

...............................................................................................................................................[2]

(c) Use the query-by-example grid below to provide a list of all members of staff, in alphabetical
order, grouped by department.

Field:
Table:
Sort:
Show:
Criteria:
or:
[5]

2210/21/M/J/16
7 A database, SOFASELECT, was set up to show the prices of suites, sofas and chairs for sale from
an online furniture warehouse. Part of the database is shown below.

Brochure Number Number


Description Material Colour Price in $
Number of Seats of Pieces

Sofa SF17 2 1 Leather Red 950

Sofa SF19 3 1 Vinyl Black 1,000

Suite SU10 4 3 Velvet Green 1,500

Suite SU23 5 3 Leather Brown 950

Recliner chair RC01 1 1 Leather Cream 600

Chair CH16 1 1 Vinyl Red 250

Recliner sofa RS23 4 1 Leather Cream 1,200

Chair CH10 1 1 Velvet Red 175

(a) How many fields are in each record?

...............................................................................................................................................[1]

(b) State which field you would choose for the primary key.

...................................................................................................................................................

Give a reason for choosing this field.

...................................................................................................................................................

...............................................................................................................................................[2]

(c) State the data type you would choose for each of the following fields.

Number of Seats .....................................................................................................................

Price in $ ..............................................................................................................................[2]

2210/22/M/J/16
(d) The query-by-example grid below selects all the furniture in cream leather.

Field: Description Material Colour Price in $ Brochure Number


Table: SOFASELECT SOFASELECT SOFASELECT SOFASELECT SOFASELECT
Sort: Descending
Show:   
Criteria: = ‘Leather’ = ‘Cream’
or:

Show the output from the query-by-example.

...................................................................................................................................................

...............................................................................................................................................[3]

(e) Complete the query-by-example grid below to select and show the brochure number, material,
colour and price of all the furniture with 3 or more seats.

Field:
Table:
Sort:
Show:
Criteria:
or:

[5]

2210/22/M/J/16
7 A television (TV) store has a database table, TVSTOCK, for its new range of televisions. The table
stores the screen size of each TV, whether it will show 3D, whether the screen is curved or flat,
if the internet is available on the TV, if it has a built-in hard disk drive and the price. Part of the
database table is shown below.

TVID ScreenSize 3D CurvedFlat Internet HDD Price


TV80CVINT 80 YES CV YES YES $7,000.00
TV65CVINT 65 YES CV YES YES $5,000.00
TV60CVINT 60 YES CV YES YES $4,500.00
TV60FTINT 60 YES FT YES YES $4,000.00
TV55CVINT 55 YES CV YES NO $3,000.00
TV55FTINT 55 YES FT YES NO $3,500.00
TV55FTNIN 55 YES FT NO NO $3,000.00
TV50CVINT 50 YES CV YES NO $2,500.00
TV50FTINT 50 YES FT YES NO $2,000.00
TV50FTNIN 50 YES FT NO NO $1,750.00
TV42FTINT 42 YES FT YES NO $1,500.00
TV37FTINT 37 NO FT YES NO $1,200.00
TV20FTNIN 20 NO FT NO NO $800.00
TV15FTNIN 15 NO FT NO NO $400.00

(a) State the type of the field TVID and give a reason for your choice.

...................................................................................................................................................

...................................................................................................................................................

...............................................................................................................................................[1]

(b) Complete the table with the most appropriate data type for each field.

Field name Data type


ScreenSize
3D
CurvedFlat
Internet
HDD
Price
[3]

2210/21/M/J/17
(c) Use the query-by-example grid below to provide a list of all of the curved screen TVs that
have a built-in hard disk drive. Make sure the list only displays the TVID, the price and the
screen size in ascending order of price.

Field:
Table:
Sort:
Show:
Criteria:
or:

[5]

2210/21/M/J/17
5 A database table, SHEEP, is used to keep a record of the sheep on a farm. Each sheep has a
unique ear tag, EARnnnn; n is a single digit. The farmer keeps a record of the date of birth, the
gender and the current weight of each sheep in kilograms.

(a) Identify the four fields required for the database. Give each field a suitable name and data
type. Provide a sample of data that you could expect to see in the field.

Field 1 name ..............................................................................................................................

Data type ...................................................................................................................................

Data sample ..............................................................................................................................

Field 2 name ..............................................................................................................................

Data type ...................................................................................................................................

Data sample ..............................................................................................................................

Field 3 name ..............................................................................................................................

Data type ...................................................................................................................................

Data sample ..............................................................................................................................

Field 4 name ..............................................................................................................................

Data type ...................................................................................................................................

Data sample ..............................................................................................................................


[8]

(b) State the field that you would choose as the primary key.

...............................................................................................................................................[1]

(c) Using the query-by-example grid below, write a query to identify the ear tags of all male
sheep weighing over 10 kilograms. Only display the ear tags.

Field:
Table:
Sort:
Show:
Criteria:
or:
[3]

2210/22/M/J/17
6 A database table, PERFORMANCE, is used to keep a record of the performances at a local
theatre.

Show Number Type Title Date Sold Out


SN091 Comedy An Evening at Home 01 Sept Yes
SN102 Drama Old Places 02 Oct No
SN113 Jazz Acoustic Evening 03 Nov No
SN124 Classical Mozart Evening 04 Dec Yes
SN021 Classical Bach Favourites 01 Feb Yes
SN032 Jazz 30 Years of Jazz 02 Mar Yes
SN043 Comedy Street Night 03 Apr No
SN054 Comedy Hoot 04 May No

(a) State the number of fields and records in the table.

Fields ........................................................................................................................................

Records ....................................................................................................................................
[2]

(b) Give two validation checks that could be performed on the Show Number field.

Validation check 1 .....................................................................................................................

...................................................................................................................................................

Validation check 2 .....................................................................................................................

...................................................................................................................................................
[2]

(c) Using the query-by-example grid, write a query to identify jazz performances that are not sold
out. Only display the date and the title.

Field:
Table:
Sort:
Show:
Criteria:
or:
[4]

2210/21/M/J/18
6 A database table, TREES, is used to keep a record of the trees in a park. Each tree is given a
unique number and is examined to see if it is at risk of dying. There are over 900 trees; part of the
database table is shown.

Tree Number Type Map Position Age in Years At Risk


TN091 Acacia A7 250 Y
TN172 Olive C5 110 N
TN913 Cedar B9 8 N
TN824 Banyan A3 50 Y
TN021 Pine D5 560 Y
TN532 Teak C8 76 Y
TN043 Yew B1 340 N
TN354 Spruce D4 65 N
TN731 Elm B10 22 Y
TN869 Oak C9 13 N
TN954 Pine E11 3 N

(a) State the number of fields in the table.

...............................................................................................................................................[1]

(b) The tree numbering system uses TN followed by three digits. The numbering system will not
work if there are over 1000 trees.
Describe, with the aid of an example, how you could change the tree numbering system to
allow for over 1000 trees. Existing tree numbers must not be changed.

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...............................................................................................................................................[2]

(c) Using the query-by-example grid, write a query to identify at risk trees over 100 years old.
Display only the type and the position on the map.

Field:
Table:
Sort:
Show:
Criteria:
or:
[4]
2210/22/M/J/18
6 A picture gallery owner has decided to set up a database to keep information about the pictures
he has for sale. The database table, PICTURE, will contain the following fields:

Title; Artist; Description; Catalogue Number; Size (area in square centimetres); Price; Arrived (date
picture arrived at gallery); Sold (whether picture is already sold)

(a) (i) State what data type you would choose for each field.

Title ...................................................................................................................................

Artist ..................................................................................................................................

Description ........................................................................................................................

Catalogue Number ............................................................................................................

Size ...................................................................................................................................

Price ..................................................................................................................................

Arrived ...............................................................................................................................

Sold ...............................................................................................................................[4]

(ii) State which field you would choose for the primary key.

.......................................................................................................................................[1]

(b) Give a validation check that you can perform on each of these fields. Each validation check
must be different.

Catalogue Number ....................................................................................................................

Size ...........................................................................................................................................

Price .........................................................................................................................................

Arrived ..................................................................................................................................[4]

(c) Complete the query-by-example grid below to select and show the Catalogue Number, Title
and Price of all unsold pictures by the artist ‘Twister’.

Field:
Table:
Sort:
Show:
Criteria:
or:
[5]

2210/22/O/N/15
5 A motor boat hire company decides to set up a database to keep information about boats that are
available for hire. The database table, BOAT, will contain the following fields:

Boat Name; Model; Engine Power (in hp); Number of Seats; Life Raft (whether there is a life raft
kept on the boat); Day Price (price for a day’s hire).

(a) Give the data type you would choose for each field.

Boat Name ................................................................................................................................

Model ........................................................................................................................................

Engine Power ............................................................................................................................

Number of Seats .......................................................................................................................

Life Raft ....................................................................................................................................

Day Price ..............................................................................................................................[3]

(b) State a validation check that you can perform on each of these fields. Each validation check
must be different.

Boat Name ................................................................................................................................

Model ........................................................................................................................................

Number of Seats .......................................................................................................................

Day Price ..............................................................................................................................[4]

(c) Complete the query-by-example grid below to select and show the Boat Name, Model and
Day Price of a day’s hire for all boats with 4 seats and an Engine Power of more than 100 hp.

Field:
Table:
Sort:
Show:
Criteria:
or:
[5]

2210/23/O/N/15
5 A database, PLAYPRODUCTION, was set up to show the performance dates, prices and number
of seats available at a theatre specialising in Shakespeare productions.

Number Number
Performance Price Stalls Price Circle
Play Seats Seats
Date Seats $ Seats $
Stalls Circle
As You Like It 01/07/2016 120 90 20.00 30.00
As You Like It 02/07/2016 85 45 30.00 40.00
As You Like It 09/07/2016 31 4 30.00 40.00
Macbeth 14/07/2016 101 56 25.00 35.00
Macbeth 15/07/2016 50 34 25.00 35.00
Macbeth 16/07/2016 12 5 35.00 50.00
Julius Caesar 22/07/2016 67 111 20.00 20.00
Julius Caesar 23/07/2016 21 24 15.00 15.00
A Comedy of Errors 30/07/2016 45 36 35.00 45.00

(a) Give the number of fields that are in each record.

.............................................................................................................................................. [1]

(b) State the data type you would choose for each of the following fields.

Play ..........................................................................................................................................

Number Seats Stalls ...............................................................................................................

Price Stalls Seats $ ............................................................................................................ [3]

(c) The query-by-example grid below selects all the productions with more than 100 seats left in
either the stalls or the circle.

Field: Play Performance Date Number Seats Stalls Number Seats Circle

Table: PLAYPRODUCTION PLAYPRODUCTION PLAYPRODUCTION PLAYPRODUCTION

Sort: Ascending

Show:  
Criteria: > 100

or: > 100

Show what would be output from the query-by-example.

...................................................................................................................................................

...................................................................................................................................................

.............................................................................................................................................. [3]
2210/22/O/N/16
(d) Complete the query-by-example grid below to select all the productions with at least six seats
left in the circle and show the Play, Performance Date and Price Circle Seats $ in Performance
Date order.

Field:

Table:

Sort:

Show:
Criteria:

or:
[5]

2210/22/O/N/16
6 A database, THEATRETOURS, was set up to show the tour dates, towns, number of seats and
prices in local currency for a Shakespeare play.

Town Tour Date Number of Seats Price Local Currency


Wigan 18/08/2016 120 15.00
Dumfries 20/08/2016 160 12.50
Turin 25/08/2016 200 17.00
Macon 27/08/2016 75 18.00
Bordeaux 29/08/2016 170 20.00
Algiers 01/09/2016 125 1350.00
Windhoek 05/09/2016 65 90.00
Windhoek 06/09/2016 65 90.00
Port Elizabeth 10/09/2016 200 110.00

(a) Explain why none of the fields in the database can be used as a primary key.

...................................................................................................................................................

...................................................................................................................................................

...............................................................................................................................................[2]

(b) State a field that could be added as a primary key.

...................................................................................................................................................

Give a reason for choosing this field.

...................................................................................................................................................

...............................................................................................................................................[2]

(c) Use the query-by-example grid below to provide a list of tour dates and seat prices in
alphabetical order of town.

Field:
Table:
Sort:
Show:
Criteria:
or:
[4]

2210/23/O/N/16
6 A database table, TRAIN, is to be set up for a railway company to keep a record of the engines
available for use. Each engine has a unique number made up of 5 digits, nnnnn. The engines
are classified as freight (F) or passenger (P) together with a power classification that is a whole
number between 0 and 9, for example F8. The railway company keeps a record of the date of the
last service for each engine.

(a) Identify the three fields required for the database. Give each field a suitable name and data
type. Provide a sample of data that you could expect to see in the field.

Field 1 Name ............................................................................................................................

Data type ..................................................................................................................................

Data sample .............................................................................................................................

Field 2 Name ............................................................................................................................

Data type ..................................................................................................................................

Data sample .............................................................................................................................

Field 3 Name ............................................................................................................................

Data type ..................................................................................................................................

Data sample .........................................................................................................................[6]

(b) State the field that you should choose as the primary key.

...............................................................................................................................................[1]

(c) Using the query-by-example grid below, write a query to identify all passenger engines that
have not been serviced in the past 12 months. Only display the engine numbers.

Field:
Table:
Sort:
Show:
Criteria:
or:

[3]

2210/22/O/N/17
6 A wildlife park has a database table, called LIVESTOCK, to classify and record its animal species.
Part of the database table is shown.

Species Classification Diet Legs


Giraffe Mammal Herbivore 4
Elephant Mammal Herbivore 4
Crocodile Reptile Carnivore 4
Ostrich Bird Omnivore 2
Gorilla Mammal Herbivore 2
Bear Mammal Omnivore 4
Rhinoceros Mammal Herbivore 4
Hippopotamus Mammal Herbivore 4
Flamingo Bird Omnivore 2
Lion Mammal Carnivore 4
Turtle Reptile Omnivore 4
Penguin Bird Carnivore 2

(a) Suggest another appropriate field that could be added to this database by stating its name
and data type. State its purpose and give an example of the data it could contain.

Field name ................................................................................................................................

Data Type .................................................................................................................................

Purpose ....................................................................................................................................

...................................................................................................................................................

Example of data ........................................................................................................................


[2]

(b) Use the query-by-example grid below to provide a list of all four legged mammals that are
herbivores, sorted alphabetically by species, with only the species displayed.

Field:
Table:
Sort:
Show:
Criteria:
or:

[4]

2210/23/O/N/17
6 A database table, PORTRAIT, is used to keep a record of the portraits available from a photographic
studio. Each portrait has a unique reference number PICnnn, where n is a single digit, for example
PIC123. The studio keeps a record of the size (for example 20 × 15), the type (black and white or
colour), and the price in dollars.

(a) Complete the table to show the most appropriate data type for each of the fields.

Field Data type

Reference Number

Size

Type

Price in $
[4]

(b) The results from the query-by-example grid should show the reference number, price, type
and size of all portraits under $50. Identify the three errors in the query-by-example grid.

Field: Reference No Price in $ Type Size

Table: PORTRAIT PORTRAIT PORTRAIT PORTRAIT

Sort:

Show:   
Criteria: >50.00

or:

Error 1 .......................................................................................................................................

...................................................................................................................................................

Error 2 .......................................................................................................................................

...................................................................................................................................................

Error 3 .......................................................................................................................................

...................................................................................................................................................
[3]

2210/22/O/N/18
6 An online fruit tree specialist sells fruit trees in various sizes. A database table, TREETAB, shows
the tree type and, for each size, the price and whether they are in stock.

Tree Type Size1 Size1 In Size2 Size2 In Size3 Size3 In


Apple 10.95 Yes 14.95 Yes 29.95 Yes
Apple 12.95 Yes 14.95 Yes 29.95 Yes
Cherry 24.95 No 34.95 No 59.95 Yes
Fig 19.95 Yes 29.95 No 49.95 Yes
Guava 19.95 No 29.95 No 59.95 No
Nectarine 8.50 Yes 11.95 Yes 19.95 Yes
Olive 19.95 No 39.95 Yes 59.95 Yes
Peach 9.25 No 11.95 Yes 19.95 Yes
Pear 10.95 Yes 14.95 Yes 29.95 Yes
Plum 8.95 Yes 11.95 Yes 19.95 Yes
Pomegranate 12.95 No 18.95 Yes 34.95 No
Quince 34.95 Yes 44.95 Yes 84.95 No

(a) State whether any of the fields shown would be suitable as a primary key.

...................................................................................................................................................

Explain your answer .................................................................................................................

...................................................................................................................................................

...................................................................................................................................................
[2]

(b) Complete the table to show the most appropriate data type for each of the fields based on the
data shown in the table at the start of question 6.

Field Data type


Tree Type
Size3
Size2 In
[3]

2210/23/O/N/18
(c) Show the output that would be given by this query-by-example.

Field: Tree Type Size1 Size1 In

Table: TREETAB TREETAB TREETAB

Sort: Descending

Show:   

Criteria: <10.00

or:

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...............................................................................................................................................[4]

(d) Using the following query-by-example grid, write a query to identify all types of the fruit trees
that are out of stock for all three sizes. Make sure the type of the tree and the various ‘in
stock’ fields are shown. The trees should be listed in alphabetical order by type.

Field:

Table:

Sort:

Show:

Criteria:

or:
[4]

2210/23/O/N/18
Page 6 Mark Scheme Syllabus Paper
Cambridge O Level – May/June 2015 2210 21

7 (a) – 7 [1]

(b) – Brochure No
– Uniquely identifies each property [2]

(c) Garage – Boolean


Number of Bedrooms – Number/Integer/Single
Price in $ – Number/Single/Real/Currency [3]

(d) 399000 H13


450000 H10 [2]

MS is continued on the next page


Page 7 Mark Scheme Syllabus Paper
Cambridge O Level – May/June 2015 2210 21

(e)
Field: Property Type Garage Price in $ Brochure No

Table: PROPERTY PROPERTY PROPERTY PROPERTY

Sort:

Show:    

Criteria: True < 200000

or:

or
Field: Property Type Garage Price in $ Brochure No

Table: PROPERTY PROPERTY PROPERTY PROPERTY

Sort:

Show:    

Criteria: Yes < 200000

or:

or
Field: Property Type Garage Price in $ Brochure No

Table: PROPERTY PROPERTY PROPERTY PROPERTY

Sort:

Show:    

Criteria: =Yes < 200000

or:

or
Field: Property Type Garage Price in $ Brochure No

Table: PROPERTY PROPERTY PROPERTY PROPERTY

Sort:

Show:    

Criteria: =-1 < 200000

or:

(1 mark) (1 mark) (1 mark) (1 mark)


[4]
Page 6 Mark Scheme Syllabus Paper
Cambridge O Level – May/June 2015 2210 22

6 (a) – 7 [1]

(b) – Class ID
– Uniquely identifies each student [2]

(c) Diana Abur, Paul Smith


– both names
– ……. correct order [2]

(d)
Field: Student Name Maths English

Table: MARKS MARKS MARKS

Sort:

Show:   

Criteria: <40 <40

or:

(1 mark) (1 mark) (1 mark) [3]


Page 5 Mark Scheme Syllabus Paper
Cambridge O Level – May/June 2016 2210 21

6 (a) – all (fields) have (1 mark) duplicate entries (1 mark)

– none (of the fields) (1 mark) have unique entries(1 mark)


[2]

(b) – e.g. StaffNumber ….

– ….. Uniquely identifies each member of staff//no duplicates//different for each member of
staff
[2]
(c)

Field: Department Name


Table: STAFFPHONE STAFFPHONE
Sort: Ascending Ascending
Show:    
Criteri
a:
or:
(2 marks) (2 marks) (1 mark for correct order and number of fields shown)
[5]
Page 5 Mark Scheme Syllabus Paper
Cambridge O Level – May/June 2016 2210 22

7 (a) – 7 [1]

(b) – Brochure Number……..


– ….. Uniquely identifies each record/each Brochure Number different/no duplicates [2]

(c) – Number of Seats – number/integer


– Price in $ – currency/real [2]

(d) 1 mark for each correct result, 1 mark for the results in descending order of price

– Recliner sofa 1,200 RS23


– Recliner chair 600 RC01 [3]

(e)

Field: Brochure Material Colour Price in $ Number of


Number Seats

Table: SOFASELECT SOFASELECT SOFASELECT SOFASELECT SOFASELECT

Sort:

Show:     

Criteria: >2

or:

(1 mark) (1 mark) (1 mark) (1 mark) (1 mark)

[5]
2210/21 Cambridge O Level – Mark Scheme May/June 2017
PUBLISHED

Question Answer Marks

7(a) Any one from: 1


- It is the primary key/key field with unique data
- (Fixed length) text field with alphanumeric data

7(b) Field name Data type 3

ScreenSize Number
3D Boolean
CurvedFlat Text
Internet Boolean
HDD Boolean
Price Currency

1 mark for every two correct data types

7(c) Field: TVID ScreenSize CurvedFlat HDD Price 5

Table: TVSTOCK TVSTOCK TVSTOCK TVSTOCK TVSTOCK


Sort: Ascending
Show: ; ; † † ;
Criteria: =“CV” YES
or:
(1 Mark) (1 Mark) (1 Mark) (1 Mark) (1 Mark)
2210/22 Cambridge O Level – Mark Scheme May/June 2017
PUBLISHED

Question Answer Marks

5(a) for each field name (1), data type and sample (1) 8

The following are examples there are many different correct answers.
- EarTag (1), text, EAR1011 (1)
- DOB (1), date, 4/3/2017 (1)
- Gender (1), text, M (1)
- Weight (1), number, 5.9 (1)

Question Answer Marks

5(b) EarTag 1

5(c) Field: EarTag Gender Weight 3

Table: SHEEP SHEEP SHEEP


Sort:
Show: ; † † †
Criteria: =’M’ > 10
or:
(1 mark) (1 mark) (1 mark)
2210/21 Cambridge O Level – Mark Scheme May/June 2018
PUBLISHED

Question Answer Marks

6(a) Fields 5 2
Records 8

6(b) Any two from: 2


Length check
Type check
Presence check
Format check

Question Answer Marks

6(c) Field: Type Sold Out Date Title 4

Table: PERFORMANCE PERFORMANCE PERFORMANCE PERFORMANCE


Sort:
Show: † † ; ;
Criteria: Like “Jazz” False
or:

One mark per correct column.


2210/22 Cambridge O Level – Mark Scheme May/June 2018
PUBLISHED

Question Answer Marks

6(a) Fields 5 1

6(b) One mark description of new code that will allow more than 1000 values 2
One mark for example matching candidate’s description

Example
Use a new character instead of N
TT345

6(c) Field: At Risk Age in Years Type Map Position 4

Table: TREES TREES TREES TREES


Sort:
Show: † † ; ;
Criteria: True >100
or:

One mark per correct column


Page 5 Mark Scheme Syllabus Paper
Cambridge O Level – October/November 2015 2210 22

6 (a) (i) One mark for every two correct types


Title – text
Artist – text
Description – text/memo
Catalogue Number – text/(auto)number
Size – number
Price – currency/number
Arrived – date
Sold – “yes/no”/text/Boolean
0, 1 no marks
2, 3 one mark
4, 5 two marks
6, 7 three marks
8 four marks [4]

(ii) Catalogue Number [1]

(b) One mark for each correct different check


Catalogue Number Format check/Presence Check/Check Digit/Length check/uniqueness
check
Size Type check/Presence Check/Range Check
Price Type check/Presence Check/Range Check
Arrived Type check/Presence Check/Range Check/Format check/Select from
calendar length check [4]

(c)
Field: Catalogue Title Price Artist Sold
Number

Table: PICTURE PICTURE PICTURE PICTURE PICTURE

Sort:

Show:     

Criteria: ='Twister' False

or:

(1 mark) (1 mark) (1 mark) (1 mark) (1 mark)


[5]
Page 5 Mark Scheme Syllabus Paper
Cambridge O Level – October/November 2015 2210 23

5 One mark for every two correct types


Boat Name – text
Model – text
Engine Power – number
Number of Seats – number
Life Raft – “yes/no”/text/Boolean
Day Price – currency/number
0, 1 no marks
2, 3 one mark
4, 5 two marks
6 three marks [3]

(b) One mark for each correct different check


Boat Name Presence Check/Type Check/Character Check
Model Format check/Type check/Presence Check/Length check/
Use of Drop-down box to select
Number of Seats Type check/Presence Check/Range Check/
Use of Drop-down box to select
Day Price Type check/Presence Check/Range Check [4]

(c)
Field: Boat Name Model Day Price Number of Engine
Seats Power

Table: BOAT BOAT BOAT BOAT BOAT

Sort:

Show:     

Criteria: =4 > 100

or:
(1 mark) (1mark) (1 mark) (1 mark) (1 mark) [5]
Page 5 Mark Scheme Syllabus Paper
Cambridge O Level – October/November 2016 2210 22

5 (a) – 6 [1]

(b)
– Play text
– No Seats Stalls number
– Price Stalls Seats $ currency [3]

(c) 1 mark for correct plays, 1 mark for correct dates with each play and no extra fields or
text, 1 mark for the order
As You Like It 01/07/2016
Julius Caesar 22/07/2016
Macbeth 14/07/2016
[3]
(d)

Field: Play Performance Date Number Seats Circle Price Circle Seats $

Table: PLAYPRODUCTION PLAYPRODUCTION PLAYPRODUCTION PLAYPRODUCTION

Sort: Ascending/
Descending

Show: ; ; † ;

Criteria: >=6

or:

(1 mark) (1 mark) (2 marks) (1 mark)


1 for Criteria
1 for correct Field &
Table & Sort & Show
& or
[5]
Page 4 Mark Scheme Syllabus Paper
Cambridge O Level – October/November 2016 2210 23

6 (a) – Town has duplicate entries/all fields can have duplicate entries
– fields other than Town not suitable identifiers [2]

(b) – Performance number …


– … uniquely identifies each performance [2]

(c)

Field: Town Tour Date Price Local


Currency

Table: THEATRETOURS THEATRETOURS THEATRETOURS

Sort: Ascending

Show: ; ; ; †

Criteria:

or:
1 mark for each column + 1 mark for correct fields only [4]
2210/22 Cambridge O Level – Mark Scheme October/November
PUBLISHED 2017
Question Answer Marks

6(a) – 1 mark for each field suitable name, 1 mark for appropriate data type and appropriate data sample 6

The following are examples there are many different correct answers.

– Engine Number, text, 21012


– Class, text, P6
– Service Date, date, 4/3/2017

6(b) – Engine Number // Correct field number 1

6(c) Field: Engine Number Class Service Date 3

Table: TRAIN TRAIN TRAIN


Sort:
Show: ; † † †
Criteria: Like ‘P*’ // Like ‘P?’ <10/11/2016
or:
(1 mark) (1 mark) (1 mark)
2210/23 Cambridge O Level – Mark Scheme October/November
PUBLISHED 2017

Question Answer Marks

6(a) 1 mark for any sensible appropriate field name 2


1 mark for data type, purpose + example data

Example 1:
Field Name: SPECIESID
Data Type: Alphanumeric
Purpose: Primary key
Example Data: SP06583

Example 2:
Field name: NUMBER
Data Type: Integer
Purpose: To record how many of that species there are at the park
Example Data: 30

Question Answer Marks

6(b) 4
Field: Species Classification Diet Legs
Table: LIVESTOCK LIVESTOCK LIVESTOCK LIVESTOCK
Sort: Ascending/
Descending
Show: ; † † † †
Criteria: “Mammal” “Herbivore” 4
or:
(1 Mark) (1 Mark) (1 Mark) (1 Mark)

1 mark per completely correct column.


2210/22 Cambridge O Level – Mark Scheme October/November 2018
PUBLISHED
Question Answer Marks

6(a) Many correct answers, an example is given. 1 mark for each correct row (max 4). 4

Field Data type

Reference Number Text

Size Text

Type Text/Boolean

Price in $ Number/Currency

6(b) 1 mark per bullet: 3

• Incorrect field name for Reference Number


• Incorrect criteria for Price in $ should be <
• Type not checked
2210/23 Cambridge O Level – Mark Scheme October/November 2018
PUBLISHED

Question Answer Marks

6(a) 1 mark for correct answer: 2


No

1 mark for correct explanation:


No field in this table contains unique identifier

6(b) 1 mark for each correct answer 3

Field Data type

Tree Type Text

Size3 Number

Size2 In Boolean/Text
2210/23 Cambridge O Level – Mark Scheme October/November 2018
PUBLISHED
Question Answer Marks

6(c) 1 mark for each correct row (max 3) and 4


1 mark for the correct order

Peach 9.25 No
Plum 8.95 Yes
Nectarine 8.50 Yes

6(d) 1 mark correct Fields included 4


1 mark correct Table and Show on all the four fields required
1 mark for correct Sort, must be ascending
1 mark for correct Criteria for the four fields

Field: Tree Type Size1 In Size2 In Size 3 In

Table: TREETAB TREETAB TREETAB TREETAB

Sort: Ascending

Show: ; ; ; ; †

Criteria: =No =No =No

or:

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy