B2.3.4 — Functions, Scope and Modularization

IB DP Computer Science — B2 Programming — Programming constructsSLB2.3.4

Free preview

Read the preview below. The full note is free with an account.

Unlock the full notes

01

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
Unlock the full notes

Get the full "B2.3.4 — Functions, Scope and Modularization" notes

Full notes, practice questions and expert tutors are available to TYCHR students.