Community resourceWorksheet

1CP2-CT-1.7 Programming foundations checkpoint

Part 7 of 7 · 1CP2-CT-1 · Programming foundations

The checkpoint for the whole Programming foundations series, drawing the six worksheets together into one integrated task.

Students will:

  • restate algorithms, sequence and the IPO model accurately
  • apply decomposition and abstraction to a new system
  • use named storage and the correct types
  • diagnose an input conversion fault and give the amendment
  • write an integrated program and judge the evidence its tests provide

Inside: 9 explanation cells, 1 multiple-choice question, 1 Python task, 3 fill-in-the-blanks cells and 2 written answers. 20 marks, about 45 minutes.

Series: 1CP2-CT-1 · Programming foundations, part 7 of 7.

Shared by Coding PathwayVerified teacher

  • 16 cells
  • About 45 minutes
  • CC BY-SA 4.0
  • Shared 17 Aug 2026

Preview

The whole resource, exactly as a class sees it. Answers and marking are held back.

Programming foundations checkpoint

This checkpoint retrieves only the content taught in 1CP2-CT-1.1 to 1CP2-CT-1.6. It does not include binary or other principles-strand content.

Each section begins with a concise method reminder, then uses new data or a new context. Use the reminders to organise your thinking rather than looking for a copied answer.

1. Algorithms, sequence and IPO

Remember: an algorithm is a finite, ordered and unambiguous solution method. Input supplies data, processing works on it and output reports the result. Processing cannot use data that is not yet available.

Fill in the blanks3 marks
For a delivery algorithm, the number of crates and items per crate are the label 1. Multiplication is the label 2. The reported total is the label 3.
  • algorithm
  • input
  • output
  • processing
  • program

2. Decomposition and abstraction

Decomposition divides a problem into purposeful smaller parts. Abstraction retains the detail relevant to the current purpose and hides or omits irrelevant detail. The techniques often work together, but they are not interchangeable.

Written answer3 marks

A team is designing a system for lending sports equipment. State one useful decomposition and one useful abstraction for the task, then explain how either choice helps the team.

Name purposeful parts for decomposition and purpose-relevant retained or omitted detail for abstraction.

Students type their answer here.

3. Named storage and types

Initialisation gives a variable its first value. Assignment stores or replaces a value. A constant is intended not to change and uses an uppercase name. Choose int for whole numbers, float for fractional numbers, bool for truth values and one-character str for a character.

Fill in the blanks3 marks
In LIMIT = 20, LIMIT is intended as a label 1. In count = 4, count is a label 2. The value 4 has type label 3.
  • bool
  • constant
  • float
  • int
  • variable

4. Input, conversion and debugging

input() returns text. Convert with int() or float() before numerical arithmetic. If int() receives unsuitable text, Python can stop during execution with a runtime error. Use read, locate, explain, amend and rerun.

Written answer2 marks

The line temperature = int(input("Temperature: ")) receives 18.5 and stops. Explain the fault and give the appropriate amendment when fractional temperatures are allowed.

Locate the operation, connect the input to the type, then name the replacement conversion.

Students type their answer here.

5. Follow a sequence flowchart

Checkpoint sequence flowchartStartInput boxestotal = boxes × 6Output totalEnd

Follow arrows from start. The parallelogram supplies boxes, the rectangle calculates total, and the final parallelogram outputs it. Translate × to Python * when writing code.

Fill in the blanks3 marks
If the flowchart receives 7 boxes, the process calculates label 1. The shape containing the calculation is a label 2. The shape that displays the result is an label 3.
  • 13
  • 42
  • input/output parallelogram
  • process rectangle
  • terminator

6. Integrated programming task

Use the complete sequence model:

  1. input and convert each whole-number value;
  2. calculate into a meaningfully named variable;
  3. output the result after it exists;
  4. test with more than one data set.

Write a program that inputs shelves and items_per_shelf, converts both to integers, calculates total_items using multiplication and outputs only total_items.

It will be tested with 4 and 8, then 6 and 5.

Coding task5 marks

7. Review the evidence

A complete solution is not only code that happens to run once. Check it against the stated inputs, data types, processing, output and sequence. Then compare actual results with expected results for both test cases.

Multiple choice1 mark

Which result provides the strongest evidence that the integrated program is not hard-coded for the first test?

  • AIt contains four lines of code.
  • BIt uses spaces around the multiplication symbol.
  • CIt also produces 30 from inputs 6 and 5.
  • DIts input prompts contain capital letters.

Series complete

You have now established the first CT foundations: algorithms and IPO, decomposition and abstraction, named storage, primitive types, input and conversion, introductory runtime debugging, flowchart conventions and sequence translation.

Later series will revisit these ideas while adding selection, repetition and other constructs. The checkpoint is not evidence of permanent mastery on its own; retrieval and application continue throughout the course.