Question 19(c) 2024 · October-November · Paper 21 · 7 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 19
Part (c)
Question 19
WHILE Temperature = 999
Part (c)
Complete the trace table for the corrected algorithm using this data:
Temperature OUTPUT
Question 10
, ,
10 A shop that sells cheese has set up a new database table called CheeseStock to store details of the cheeses available for sale. Part of this table is given.
ChNo Name InStock SupplierCode PricePerKg WeightKg
CH01 American Yes XYZ 4.50 20.0
CH02 Brie Yes XYZ 7.50 21.0
CH03 Burrata No IMP 13.75 0.0
CH04 Camembert No ABC 16.85 0.0
CH05 Cheddar Yes ABC 5.00 50.0
CH06 Comté No SPC 7.35 0.0
CH07 Cottage Yes XYZ 4.50 3.0
CH08 Cream Yes XYZ 5.50 6.5
CH12 Emmental Yes IMP 2.75 1.5
CH15 Feta Yes IMP 12.75 12.0
CH16 Fontina Yes SPC 15.99 1.2
CH17 Gorgonzola Yes SPC 15.25 0.3
CH19 Gouda Yes SPC 7.99 2.5
CH21 Gruyère No SPC 16.75 0.0
CH22 Halloumi Yes IMP 4.75 15.0
CH23 Havarti No SPC 6.75 0.0
CH27 Manchego No IMP 13.99 0.0
CH30 Manouri No IMP 18.50 0.0
CH31 Mascarpone No SPC 12.99 0.0
Part (a)
State the number of records in this part of the database table.
.............................................................................................................................................
Part (b)
(i)
Give the name of the field that would be used for the primary key.
.....................................................................................................................................
(ii)
State the reason for choosing this field for the primary key.
...........................................................................................................................................
.....................................................................................................................................
Question 11
, ,
Part (c)
Write the output from this structured query language (SQL) statement.
SELECT ChNo, WeightKg FROM CheeseStock WHERE SupplierCode = 'ABC';
...................................................................................................................................................
...................................................................................................................................................
.............................................................................................................................................
Why this question appears here
98% assigned-topic match · Algorithm design and problem-solving
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 0478_w24_qp_21.pdf
