A flowchart is a visual representation of a sequence of steps and decisions. Pseudocode expresses an algorithm in structured, human-readable instructions rather than the exact syntax of a programming language. A PG3 student may draw a neat flowchart but still fail to trace what happens when an input reaches a decision, a loop repeats, or a variable changes. The important skill is understanding the algorithm’s behaviour, not decorating the diagram.
Parents can help without knowing Python by asking the child to choose a simple input, follow the arrows, record the value of each variable after every step and predict the final output before running the code. If the predicted and actual results differ, identify the first step where the reasoning broke down. Confirm which flowchart conventions and software the school uses before assigning extra exercises.
- An algorithm is a finite, well-defined set of instructions intended to solve a problem.
- Flowcharts show the flow of control; pseudocode describes the same logic in structured text.
- Sequence means steps execute in order; selection chooses a branch based on a condition.
- Repetition uses a loop, whose initial state, condition and updates all matter.
- Trace tables record changes to variables across decisions and loop iterations.
- Test ordinary inputs, boundary inputs and cases in which a loop runs zero times.
A tidy diagram is not proof that the logic works
A flowchart can have the right symbols and still describe an incorrect algorithm. Students may include a decision diamond but connect both answers to the same path, forget to update a loop counter or omit a step needed to produce the requested output. These are errors of logic, not artwork.
Ask the student to read the chart as though they were the computer. What happens first? At each decision, is the condition true or false for the chosen input? Does the next arrow lead to the correct action? A diagram should be tested with examples, not assessed only for neatness.
Start with sequence: the order matters
Suppose a program intends to take an input number, multiply it by two, and then add three. If the input is 4, the result is 11. Reversing the steps—adding three and then multiplying by two—would produce 14. Both sequences are well formed, but they solve different problems.
Ask the child to number the steps and explain what each does. Then compare a short text algorithm with a flowchart. If the output differs when the steps are reordered, the student is beginning to understand that an algorithm’s correctness depends on its actual operations, not just the presence of boxes and arrows.
What flowchart symbols communicate
Introductory flowcharts commonly use an oval or rounded shape for start and end, a parallelogram for input and output, a rectangle for a processing step, and a diamond for a condition or decision. Arrows indicate where control moves next. Exact classroom conventions should follow the teacher’s instructions.
Parents should avoid insisting on a different diagram notation from an online tutorial when the school has provided its own. The purpose of the symbols is clear communication. Ask whether the decision outcome is labelled and whether every path can be followed to a sensible next step.
Selection: a true branch and a false branch
Imagine an algorithm that reads a temperature and displays ‘Above target’ when the value is greater than 30, otherwise displaying ‘At or below target’. For an input of 31, the condition temperature > 30 is true. For an input of 30, it is false. The boundary matters.
A student may confuse > with ≥ and send exactly 30 down the wrong branch. Ask which part of the instruction defines the decision, then test the value immediately below, exactly at and immediately above the boundary. These three tests reveal many beginner errors.
Nested conditions: more than one decision
Some algorithms contain decisions inside other decisions. For example, a program might first check whether a number is positive and then, only if it is positive, check whether it is even. Students may mistakenly perform the second test for every input or assume that two separate conditions are interchangeable.
Have the child describe the decision order in words and follow one input that satisfies both conditions and another that satisfies only the first. The goal is to understand which conditions are reached and which are skipped. A decision tree is easier to reason about when each branch is labelled with its outcome.
Repetition: what makes a loop stop
A loop repeats instructions under a stated control condition. To understand it, identify the initial value, the test performed and the update during each iteration. If the update never changes the condition in the expected direction, the loop may continue indefinitely or behave incorrectly.
Consider a counter that starts at 1, prints its value, then increases by 1 while the condition counter ≤ 3 remains true. The output sequence should be 1, 2, 3. Ask the student what counter becomes after printing 3 and why the loop ends. A precise explanation is better than saying the loop runs three times because the number three appears.
The off-by-one mistake
One of the most common beginner errors is executing one too many or one too few iterations. A loop that runs while count < 5 starting at 0 behaves differently from one that runs while count ≤ 5. The update order can also change how many values are processed.
Have the student make a simple row for each iteration, including the condition checked, the current value, the action and the updated value. The final false condition should be shown too. This makes the stopping point visible instead of leaving it to intuition.
What a trace table records
A trace table follows the state of a program step by step. Suppose total begins at 0 and the algorithm adds 2, then 4, then 6. A trace might show total as 0 before the loop, then 2, 6 and 12 after each addition. The final value is therefore 12.
Ask the child to distinguish total from the item being processed. If the second item is 4, that does not mean total becomes 4; it becomes the previous total plus 4. An accumulation variable carries information forward across iterations, and that is why tracing its value matters.
A worked example: accumulate three numbers
Consider an algorithm that sets total to 0, then processes the numbers 3, 5 and 7 by updating total = total + number. Its trace is 0 → 3 → 8 → 15. If the chart resets total to 0 during each repetition, the final result may incorrectly be 7.
Ask the child where total is initialised. It should happen before the accumulation loop for this task. If initialisation occurs inside the loop, the history is lost every time. This one mistake can explain why a student’s program appears to work for one item but fails with several.
Pseudocode is not a programming language
Pseudocode may include phrases such as IF, ELSE, WHILE, REPEAT, INPUT and OUTPUT, but it is not executed directly by Python without translation. Different schools and resources may use slightly different styles. The important issue is whether the logic is clear and consistent.
Parents should ask what each instruction means in the classroom’s agreed notation. If the learner later turns the algorithm into Python, details such as indentation, punctuation, variable types and loop syntax become important. A correct pseudocode plan can still be implemented incorrectly, so both representations need checking.
From pseudocode to Python
A basic decision written in pseudocode can become an if/else structure in Python. A repeated set of instructions can become an appropriate loop. However, copying working Python code from a screen does not establish that the student can design the algorithm or predict its behaviour.
Ask the child to describe the algorithm before opening the code editor. What input is accepted? What should be output? Which condition chooses a path? What would happen for a boundary value? This habit supports independent programming and reduces the temptation to paste a solution without understanding it.
Why the same algorithm may fail for an unusual input
A learner may test only ordinary positive numbers, overlooking zero, negative numbers, empty lists or the exact boundary of a range. A task to find the largest number in a list may also need to handle the first item correctly rather than assuming the largest value begins at zero.
Test cases should follow the task’s valid input rules. Do not invent conditions beyond the problem statement, but do test important edge cases within the allowed range. A program that works for 5 and 7 may still fail at 0 or at the maximum permitted value.
Logical errors and the first incorrect step
A logical error occurs when the instructions execute but do not produce the required result. The fastest way to investigate is often to find the first step where the actual state differs from the intended state. Changing several lines at once makes it harder to know which revision fixed the issue.
Use a trace table with the expected value and the program’s actual value side by side. Form one hypothesis, make one correction and rerun the failing example. Then rerun earlier successful examples to check that the correction did not introduce another problem.
AI assistance: understand before using generated code
AI tools may suggest algorithms, diagrams and Python code, but they can misunderstand a school assignment or give a solution that a child cannot justify. Some assessed tasks restrict or prohibit AI use. Students should follow the school’s academic-integrity and acceptable-use rules, including any acknowledgement requirements.
When AI is permitted for learning, a parent can encourage the child to request hints or explanations instead of a complete answer. The child should then produce the flowchart, trace it and test it independently. Do not upload classmates’ personal information or assessed work to unapproved tools.
A fifteen-minute practice for families
Use one simple algorithm with a loop and a decision. Spend five minutes predicting the output for a normal input, five minutes constructing a trace table and five minutes testing a boundary value. Ask the child to explain why each branch and loop update occurs.
Keep the example short enough to trace on paper. If the child cannot identify the value of a variable after three steps, adding larger code examples will not solve the problem. Ask the school which notation and software are expected, and practise one clearly defined skill at a time.
G3 Computing is a school-specific option
The SEAB 2027 G3 school-candidate register lists Computing K349. This listing does not mean every secondary school offers G3 Computing, and the requirements may differ for future exam cohorts. Students entering Secondary 1 in 2027 should follow the receiving school’s lower-secondary curriculum and confirm later subject combinations directly.
The MOE Full Subject-Based Banding overview explains the PG3 and G3 distinction. See eduKateSG’s Python debugging and trace-table guide for a related skill. Parents should not purchase an expensive computer or subscribe to software before checking the school’s instructions.
What improvement should look like
A child is progressing when they can state the expected result, follow a flowchart or pseudocode sequence, predict variable values and explain why a program stops or takes a branch. A perfect-looking diagram is less important than a correct and testable algorithm.
Ask the Computing teacher whether the main gap is sequence, conditional logic, loop control, trace-table recording or Python implementation. A short, targeted exercise can build independence more effectively than repeating complete worked solutions. Keep the child’s other subjects, CCA and rest in balance.