Skip to content

Videos

Cambridge Pseudocode

Pick a topic to watch.

14 video lessons

1:59 Lesson 1 OUTPUT and sequence Cambridge exams write algorithms in pseudocode — not Python, not Java. It is a real notation with real keywords, and the paper expects those exact words. Here… 1:48 Lesson 2 Variables and DECLARE A variable is a named store that holds one value. The arrow is how a value gets in — read it as "store sixteen into Age", and watch it happen: the sixteen goes… 1:42 Lesson 3 INPUT and data types INPUT reads one line that the user types and stores it in the variable you name. That is the whole statement — no prompt, no brackets. Pair it with an OUTPUT… 2:05 Lesson 4 Arithmetic, DIV and MOD Plus, minus, times and slash behave exactly as you would expect, and there is nothing to memorise about the first three. The fourth is worth a second look.… 2:04 Lesson 5 Selection: IF Selection is the second control structure, and it is one test with exactly two exits. If the test is true, the program takes the TRUE exit and runs the block… 1:59 Lesson 6 Selection: CASE When one variable is checked against several fixed values, a stack of IFs gets long. CASE says the same thing in one block. Grade holds two. CASE compares it… 2:08 Lesson 7 Iteration: FOR Iteration is the third control structure, and a FOR loop is the version you use when you already know how many times. It has exactly one moving part: the… 2:11 Lesson 8 Iteration: WHILE and REPEAT When you do not know how many repeats you need, the test moves into the loop itself. In a WHILE loop the test is at the top: it is checked before you are let… 2:07 Lesson 9 String handling Three of the string functions have nothing to trip on. LENGTH gives how many characters are in a string — hello is five. UCASE returns it in capitals, and… 1:59 Lesson 10 1-D arrays An array stores many values under one name, and the declaration says exactly three things. Score is one name for all of them. The two numbers in brackets are… 2:08 Lesson 11 2-D arrays A 2-D array is a grid — a table with rows and columns. The declaration has two index pairs instead of one, and each pair does the same job it did in lesson… 2:02 Lesson 12 Procedures A procedure is a named block of steps. You write it once, between PROCEDURE and ENDPROCEDURE, and then run it with CALL — as many times as you like. And notice… 2:02 Lesson 13 Functions A function works something out and hands the answer back. Two words do that, and they are easy to mix up because they differ by one letter. RETURNS, with an S… 2:03 Lesson 14 Putting it together Cambridge names four standard methods — totalling, counting, linear search, and finding the maximum or minimum — and it is tempting to learn them as four…

Log in or create account

IGCSE, A-Level & AP