Syntax & Logic Errors
Lesson Instructions
Watch and follow the YouTube video, the lesson contains three parts:
Key Information and content - all you need to do here is watch and listen. We recommend you take some notes for this one!
Learning activity - You are to complete the activity which involves identifying syntax and logic errors in programs and correcting them.
Consolidation - these are past exam question and are for deliberate practice to check your understanding.
Task - Syntax & Logic Errors Activity
Task - Exam Questions - Deliberate Practice
Mark Scheme
Question 1
1 mark per bullet to max 6. Max 3 marks per error
Line Number: 03
Error type: logic error
Correct pseudocode: if mealcost <= balance
Line number: 08
Error type: syntax error
Correct pseudocode: print("Balance too low")
Do not award error type of correct pseudocode if wrong line number is identified.
For error on line 3, allow any sensible correct which means that a student with the exact balance can pay for a meal.