May/June 2026 Paper 33

2026 · 11 questions · 26 parts · 75 marks

0/75 marks
0Correct0Partial0Wrong26Unattempted
Filters0 active

Questions

Select a part to jump to its question

Finish set
10(a)(i)Searching AlgorithmsEasy2 marks
A program declares a 1D array globally as PartName[1:1000000] OF STRING, and sorts its contents in ascending alphabetical order. The function PartSearch performs a binary search on the array. The item to be found is passed as a parameter. If it is found, its location in the array is returned, otherwise, is returned.
Complete the following table to define the variables used in the function.
IdentifierData typeDescription
Left
0 words
Right
0 words
Mid
0 words
Target
0 words
10(a)(ii)Searching AlgorithmsHard5 marks
Complete the pseudocode for the function to perform a binary search on PartName using all the variables from the table in 10(a)(i). Some lines may be left blank.
pseudocode
FUNCTION PartSearch(ENDFUNCTION

Answer

0 words
10(b)Algorithm Efficiency Big OMedium2 marks
Describe how the time efficiency of a binary search changes as the number of items in the search list increases. Refer to Big O notation in your answer.

Answer

0 words