Question 10(b) 2016 · October-November · Paper 23 · 20 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 10
Part (b)
Question 10
……………………………………………………………………..
……………………………………………………………………..
Question 20
……………………………………………………………………..
……………………………………………………………………..
Question 8
3 The flowchart below inputs the price of an item under $10. The change from a $10 note is output. Any amount less than 5 cents is rounded up to 5 cents.
The predefined function INT rounds a number down to the nearest whole number; for example Z ← INT(5.7) gives the value Z = 5
START
INPUT Price
Change 10 – Price
Is Change Yes Dollars INT(Change) >= 1?
No Change Change – INT(Change)
OUTPUT Dollars, " dollars"
Is Change Yes Change Change – 0.5 >= 0.5?
No OUTPUT "One 50 cent coin"
TenCents INT(Change * 10 + 0.5)
OUTPUT TenCents, " ten cent coins"
Is Change*10 – Yes OUTPUT "One 5 TenCents cent coin" > 0?
No
END
Question 9
Complete the trace table for the input data: 6.29
Price Change Dollars TenCents OUTPUT
4 Four validation checks and four descriptions are shown below.
Draw a line to link each validation check to the correct description.
Validation check Description
Numbers between two Presence check given values are accepted
Data is of a particular Range check specified type
Data contains an exact Type check number of characters
Ensures that some data Length check have been entered
Question 10
5 REPEAT ... UNTIL and WHILE ... DO ... ENDWHILE are two different loop structures you can use when writing pseudocode.
Explain, using examples, why you would choose to use each type of loop.
Example 1 .........................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
Reason for choice .............................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
Example 2 .........................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
Reason for choice .............................................................................................................................
..........................................................................................................................................................
......................................................................................................................................................[6]
Question 11
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
Part (b)
State a field that could be added as a primary key.
...................................................................................................................................................
Give a reason for choosing this field.
...................................................................................................................................................
...............................................................................................................................................[2]
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_w16_qp_23.pdf
