Determine the preconditions for devising a solution to a problem.
2.1.2 Thinking ahead
Thinking ahead — Note 2 of 4
For a description of a program, candidates need to be able to determine what additional conditions they need to know before they can produce a solution, and how this information may affect the solution.
Preconditions are requirements that must be true before an algorithm or subroutine is run. Identifying them in advance avoids errors and makes code simpler and easier to reuse.
Exam tipCommon mistake
A condition that must be true before a subroutine or algorithm is run for it to work correctly.