Question 3(a) 2017 · October-November · Paper 23 · 8 marks
Reveal official mark-scheme answer
Official answer for Question 3
Part (a)
Question 8
Show text version of question
Question 3
Part (a)
UserNameArray, of type STRING. There are 100 elements in the array.
The format of the string in each element of the array is as follows:
<UserID><UserName>
- UserID is a six-character string of numerals.
- UserName is a variable-length string.
Write pseudocode for a procedure, BubbleSort, to perform an efficient bubble sort on UserNameArray. The array is to be sorted in ascending order of UserID.
You should assume that UserNameArray has been declared as a global variable.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Question 7
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...............................................................................................................................................[8]
Question 8
Why this question appears here
72% assigned-topic match · Data types and structures › Data types and records
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 9608_w17_qp_23.pdf
