Skip to content

Identifying and Correcting Errors

Introduced
Handout
Video lesson for this topic Open the video page
6:14

Creative Development

Here is a program that should print the average of two numbers. It runs. It does not crash. It prints an answer — and the answer is wrong. Give it four and six…

English narration · English and 中文 subtitles you can switch

In this lesson

Video lesson
Vocabulary
English Meaning
bug/bʌɡ/A defect in a program that can make it behave differently from what is intended.
debugging/ˈdiːbʌɡɪŋ/Finding, understanding and correcting errors in a program.
syntax error/ˈsɪntæks ˈerə/A mistake that breaks the grammatical rules of a programming language.
logic error/ˈlɒdʒɪk ˈerə/A mistake in an algorithm or program that produces an incorrect result despite valid syntax.
runtime error/ˈrʌntaɪm ˈerə/An error that occurs while a program is executing.
overflow error/ˌəʊvəˈfləʊ ˈerə/An error when a number is outside the range the computer can handle.
edge case/edʒ keɪs/
expected output/ekˈspektɪd ˈaʊtpʊt/

Handout

Log in or create account

IGCSE, A-Level & AP