B2.3.4 — Functions, Scope and Modularization
IB DP Computer Science — B2 Programming — Programming constructsSLB2.3.4
Free previewRead the preview below. The full note is free with an account.
Unlock the full notes01
Functions: Reusable Blocks with Inputs and an Output
- A function is a named block of code that performs one task; it may take parameters (its inputs) and may return a value (its output).
- Parameters vs arguments: parameters are the named placeholders in the
The preview ends here
Read the full note
- The complete note with worked examples
- Practice questions with mark schemes
- Help from an experienced tutor
