This study notes covers Deep Dive: Benefits of Subprograms within Bubble Sort for GCSE Computer Science. Revise Bubble Sort in 3.1 Fundamentals of Algorithms for GCSE Computer Science with 16 exam-style questions and 10 flashcards. This topic appears regularly enough that it should still be part of a steady revision cycle. It is section 6 of 9 in this topic. Use this study notes to connect the idea to the wider topic before moving on to questions and flashcards.
Deep Dive: Benefits of Subprograms
- Reusability: Write once, use many times
- Readability: Main code is cleaner and easier to understand
- Testing: Test each subprogram independently
- Maintenance: Fix bugs in one place, works everywhere
- Teamwork: Different programmers can work on different subprograms
Practice questions for Bubble Sort
Which of the following best describes bubble sort?
Describe how bubble sort works. You should refer to what happens during each pass through the list. [3 marks]