Page 1068 - SUBSEC October 2017_Neat
P. 1068
- 17 -
DO NOT WRITE IN THIS AREA
(e) Study the following pseudocode.
Begin
Declare selected, number, count
count = 0
print “enter your integers”
read number
selected = number
while (count < 10)
if(number < selected)
selected = number
count = count+1
read number
end while
print selection
DO NOT WRITE IN THIS AREA
End
State the problem the algorithm solves and explain how it solves it.
..............................................................................................................................................
..............................................................................................................................................
..............................................................................................................................................
..............................................................................................................................................
..............................................................................................................................................
..............................................................................................................................................
.............................................................................................................................................
DO NOT WRITE IN THIS AREA
..............................................................................................................................................
..............................................................................................................................................
..............................................................................................................................................
(5 marks)
Total 25 marks
END OF TEST
IF YOU FINISH BEFORE TIME IS CALLED, CHECK YOUR WORK ON THIS TEST.
GO ON TO THE NEXT PAGE
01229020 SPEC/2017
‘‘*’’Barcode Area”*”
Sequential Bar Code