Question 7

OCR Computer Science Sample papers Paper 2GCSE8 marks

On the specification

(a)
2.1 Algorithms
(b)
2.1 Algorithms
Question text

7 Willow has created a hangman program that uses a file to store the words the program can select from. A sample of this data is shown in Fig. 3. Fig. 3 crime bait fright victory nymph loose (a) Show the stages of a bubble sort when applied to data shown in Fig. 3. (b) A second sample of data is shown in Fig. 4. Fig. 4 amber house kick moose orange range tent wind zebra Show the stages of a binary search to find the word ‘zebra’ when applied to the data shown in Fig. 4. Specimen