Flashcards
4.2 Errors
Cards in this deck (6)
- 1syntax error-Occurs when text that is not valid code is found examples:
print("hello ) = missing quote
imput("name: ") = spelling error - 2runtime/execution error-Occurs when the program tries to perform an impossible opertation. examples:
dividing by zero
adding a string to an int - 3Logical errorprogram executes and exits with no errors, but the program has not done what was expected. Hard to detect and fix as no errors are produced examples:
-prime number checker that says 20 is prime
-a quiz that marks answers incorrectly - 4linking erroroccurs when a program tries to import a function from a file that doesn't exist
- 5rounding erroroccurs when a value is rounded and loses accuracy
- 6truncation erroroccurs when data must be shortened(truncated) to fit. could result in a missing text or an inaccurate value
Information
- Description
- GCSE Computing Flashcards on 4.2 Errors, created by Paige Cosstick on 16/12/2021.
- Created by
- Paige Cosstick
- Views
- 0
- Rating