Question 8(c) 2016 · May-June · Paper 21 · 26 marks
Reveal official mark-scheme answer
The answer for this question is in the official mark scheme: open the mark scheme.
Show text version of question
Question 8
Part (c)
Question 8
PRINT Small
(i)
Identify three changes you would need to make to find the largest number input instead
of the smallest number.
1 .........................................................................................................................................
...........................................................................................................................................
2 .........................................................................................................................................
...........................................................................................................................................
3 .........................................................................................................................................
.......................................................................................................................................[3]
(ii)
Rewrite the program code with your changes.
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
.......................................................................................................................................[3]
Question 7
3 A program will be written to store information about members of a swimming club.
The following membership details will be recorded:
- Name
- Gender
- Status:
- Senior
- Junior
- Fee
- Team member (Yes or No)
(i)
Choose a suitable data type for each of the membership details to be recorded.
Membership details Data type
Name
Gender
Status
Fee
Team member
(ii)
The swimming club has 50 members.
State the data structure that would be most suitable to use and give a reason for your choice.
Data structure .....................................................................................................................
Reason ...............................................................................................................................
.......................................................................................................................................[2]
Question 8
4 The flowchart below inputs the height of children who want to ride on a rollercoaster. Children under 1.2 metres are rejected. The ride starts when eight children have been accepted.
67$57
5LGHUV 5HMHFW
,1387 +HLJKW
,V <HV +HLJKW 5HMHFW5HMHFW "
1R
5LGHUV5LGHUV
1R 5LGHUV <HV 287387 " 5HDG\WRJR 5HMHFW
(1'
Question 9
Complete the trace table for the input data:
1.4, 1.3, 1.1, 1.3, 1.0, 1.5, 1.2, 1.3, 1.4, 1.3, 0.9, 1.5, 1.6, 1.0
Riders Reject Height OUTPUT
Question 10
5 REPEAT ... UNTIL is one type of loop structure.
Identify and describe two other types of loop structure that you could use when writing pseudocode.
Loop structure 1 .........................................................................................................................
Description .................................................................................................................................
...................................................................................................................................................
Loop structure 2 .........................................................................................................................
Description .................................................................................................................................
...............................................................................................................................................[4]
Question 11
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
Part (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:
Question 12
effort has been made by the publisher (UCLES) to trace copyright holders, but if any items requiring clearance have unwittingly been included, the 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 Examinations Syndicate (UCLES), which is itself a department of the University of Cambridge.
Why this question appears here
98% assigned-topic match · Databases
Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.
Permanent source page: Educate A Change · From 2210_s16_qp_21.pdf
