Question 8 2016 · May-June · Paper 22 · 17 marks
Reveal official mark-scheme answer
Official answer for Question 8
Show text version of question
Question 8
UNTIL Counter = 10 This code works, but it is inefficient.
(i)
Suggest three improvements that could be made. 1 ................................................................................................................................................. ................................................................................................................................................... 2 ................................................................................................................................................. ................................................................................................................................................... 3 ................................................................................................................................................. ...............................................................................................................................................[3]
(ii)
Rewrite the program code with your improvements.
................................................................................................................................................... ................................................................................................................................................... ................................................................................................................................................... ................................................................................................................................................... ................................................................................................................................................... ................................................................................................................................................... ................................................................................................................................................... ................................................................................................................................................... ................................................................................................................................................... ...............................................................................................................................................[3]
Question 7
Question 3
The flowchart below calculates the number of tins of paint required to paint walls. The flowchart inputs the height and width of a wall in metres, the number of doors and the number of windows.
START Area 0 Tins 0 INPUT Height, Width, Doors, Windows Is Yes Height Tins INT(Area/10 + 0.5) = –1? No OUTPUT Tins Area Area + Height * Width
- Doors * 1.5 – Windows
END Complete the trace table for the input data: 3, 5, 1, 0, 3, 7, 0, 0, 3, 5, 0, 3, 3, 7, 1, 1, –1, 0, 0, 0 Area Tins Height Width Doors Windows
Question 8
Question 4
Four statement types and four examples are shown below. Draw a line to connect each statement type to the correct example. Statement type Example Assignment FOR X 1 TO 10 READ X Iteration PRINT X Input Output X Y + Z
Question 5
State the data structure that would be most suitable to use and give the reason for your choice. Data structure ................................................................................................................................... Reason .............................................................................................................................................. ......................................................................................................................................................[2]
Question 6
Identify two different selection statements that you can use when writing pseudocode. 1 ........................................................................................................................................................ .......................................................................................................................................................... 2 ........................................................................................................................................................ ......................................................................................................................................................[2]
Question 9
Question 7 begins on page 10.
Question 10
Question 7
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
Question 2
Question 1
Leather Red 950 Sofa SF19
Question 3
Question 1
Vinyl Black 1,000 Suite SU10
Question 4
Question 3
Velvet Green 1,500 Suite SU23
Question 5
Question 3
Leather Brown 950 Recliner chair RC01
Question 1
Question 1
Leather Cream 600 Chair CH16
Question 1
Question 1
Vinyl Red 250 Recliner sofa RS23
Question 4
Question 1
Leather Cream 1,200 Chair CH10
Question 1
Question 1
Velvet Red 175
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 2210_s16_qp_22.pdf
