Computer Science Paper 21
May / June 2016·2210·6 questions
Mock exam: 105 min, official timing
Question paper
Question 1
Question 2
Question 3
Question 4
Question 5
Question 6
Mark scheme
Question 1
1(a)(i)[3]
Many correct answers, names must be meaningful. This is an example only. Length, real/integer, length of parcel Breadth, real/integer, breadth of parcel Height, real/integer, Height of parcel [3]
1(a)(ii)[2]
Several correct answers, they must be meaningful. These are examples only. Dimension, 80 TotalDimension 200 MaxWeight 10.00 [2]
1(b)[5]
Any 5 from:
– input length, breadth, height and weight – check each dimension, not more than 80 – check total of dimensions, not more than 200 – check weight at least 1 – check weight not more than 10 – output parcel accepted (must be in appropriate position) – output parcel rejected (must be in appropriate position) – output all reasons for rejecting parcel (reason must follow test) [5]
Max 5 marks Sample Answer. INPUT Length, Breadth, Height, Weight IF Length <= 80 AND Breadth <= 80 AND Height <= 80 AND Weight >= 1 AND Weight <=10 AND Length + Breadth + Height <= 200 THEN PRINT 'Parcel accepted' ELSE PRINT 'Parcel rejected' IF Length > 80 OR Breadth > 80 OR Height > 80 THEN PRINT 'At least one dimension too large' ENDIF IF Weight < 1 THEN PRINT 'Parcel too light' ENDIF IF Weight > 10 THEN PRINT 'Parcel too heavy' ENDIF ENDIF
1(c)[6]
1 mark for the data set and 1 mark for the matching reason all, data sets and reasons must be different. There are many possible correct answers these are examples only. Data set 30, 29, 28, 4 Reason – normal data;
parcel should be accepted Data set 80, 60, 60, 10 Reason – boundary data;
parcel should be accepted Data set – 85, 60, 60, 11 Reason – abnormal data;
parcel should be rejected [6]
1(d)[4]
Maximum 4 marks in total, maximum 2 marks if only programming statements used. Explanation (may include reference to programming statements) – loop for number of parcels – parcels 5 kg or less use standard price – over 5 kg use weight to calculate price – Correct calculation of price – keep running total of consignment price [4]
Question 2
2(i)(ii)[3]
3 marks maximum, 1 mark for each change correctly included. 1 Large = 0 2 Counter = 0 3 REPEAT 4 INPUT Num 5 IF Num > Large THEN Large = Num 6 Counter = Counter + 1 7 UNTIL Counter = 10 8 PRINT Large [3]
Question 3
3(i)(ii)[2]
Data Structure – several Arrays …… ………….Reason – to simplify programming/ make programs shorter/index can be used to identify the same member across the arrays etc. [2]
Question 4
Riders Reject Height Output 0 0 1 1.4 2 1.3 1 1.1 3 1.3 2 1.0 1.5
Question 5
1.2
Question 6
6(a)[2]
– all (fields) have (1 mark) duplicate entries (1 mark) – none (of the fields) (1 mark) have unique entries(1 mark) [2]
6(b)[2]
– e.g. StaffNumber …. – ….. Uniquely identifies each member of staff//no duplicates//different for each member of staff [2]
6(c)[5]
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]

