Translating an algorithm into code: declaring variables, input and output, assignment and arithmetic, IF selection, and WHILE and FOR loops, shown in Python with the matching pseudocode.
5 narrated scenes. Press play, listen and read along — the points appear as they are explained. Use ‹ Prev / Next › or the scene bar to jump to any scene.
Once the plan is ready, coding is translation. The exam is language-independent, but you need to have written real code in one language to show you can do it.
Narration uses your device’s built-in voice. No sound? Switch to “Captions only” — the captions advance on their own.
Step through a loop and a selection to see how code executes.
Copy these into your notebook in your own words — that is how they stick.
Read text / display output.
int(), float() change text to numbers.
x = 5 stores a value.
== != < > <= >=.
Selection with indented blocks.
Known number of repeats.
Repeat while true; update the counter.
# explains code.
3 quick games on this lesson. Earn XP and badges as you play — your best score for each game is saved. Games are for practice and do not change your exam readiness. More games in the Information Technology Arcade.
8 items modelled on real CSEC Paper 1 questions. Choose one answer for each, then check. Aim for 80% or better. Work each item on paper first.
Write full answers, then reveal the mark scheme and tick the points you earned (9 marks in total). Show all your working — method marks count. Your answers are saved on this device.
Question 1 [9 marks]
Write a program (in a language of your choice or pseudocode) that reads 5 numbers, totals them and prints the average.
(a) (a) Write the statements to declare/initialise the variables used. [2]
(b) (b) Write a loop that reads and adds five numbers. [4]
(c) (c) Write the statements to calculate and display the average. [2]
(d) (d) State why a while loop might never end. [1]
Find these in your own past-paper booklets for extra timed practice. Items above are written in the style of these papers; any adapted from a specific question say so.