This study notes covers Functions vs Procedures within Bubble Sort for GCSE Computer Science. Revise Bubble Sort in Algorithms for GCSE Computer Science with 15 exam-style questions and 10 flashcards. This topic appears less often, but it can still be a useful differentiator on mixed-topic papers. It is section 4 of 8 in this topic. Use this study notes to connect the idea to the wider topic before moving on to questions and flashcards.
Topic position
Section 4 of 8
Practice
15 questions
Recall
10 flashcards
Functions vs Procedures
| Aspect | Function | Procedure |
|---|---|---|
| Returns a value? | Yes - always returns something | No - just performs actions |
| Example | calculateArea(length, width) | printWelcome() |
| Use in expressions? | Yes: total = add(5, 3) | No: just call it |
| OCR keyword | function...return...endfunction | procedure...endprocedure |