Skip to content

ZIMSEC O-Level Computer Science

8.19Form 2: Control structures, functions, testing and debugging

Form 2: Control structures, functions, testing and debugging in ZIMSEC O-Level Computer Science: what the syllabus expects you to know, the learning objectives and how to practise.
Subtopic19 practice questions1 lesson

Learning objectives

What the syllabus expects you to be able to do.

  1. 8.19.1Develop programs that use pseudocode control structures (selection and repetition).
  2. 8.19.2Develop a program using functions.
  3. 8.19.3Test and debug programs.

Lessons

  • Procedures, functions, parameters and scope

    50 min

    Full access

Join to read every lesson, or see what Full access includes.

Sample question

A sample question on this topic. Answer it, check it, then read the worked answer.

Form 2: Control structures, functions, testing and debugging: sample question

1 mark

What is output?

FUNCTION Triple(N : INTEGER) RETURNS INTEGER
    RETURN N * 3
ENDFUNCTION

OUTPUT Triple(7) + 1

Only if the answer has a unit, e.g. cm or km/h.

Turn Form 2: Control structures, functions, testing and debugging into a strength.

Practise with instant marking, see your mastery grow and get a study plan built around your exam date.