Errors, debugging, and testing definitions

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/13

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 8:20 PM on 4/16/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

14 Terms

1
New cards

Error

An error is a problem or mistake in a program, its logic, or its input that leads to incorrect behaviour that ultimately leads to a test of the function being unable to execute due to an unexpected issue.

2
New cards

Failure

A failure is when a program does not behave as expected, in testing, this means that the test runs successfully but an assertation does not pass.

3
New cards

Exception

An exception is an error detected during program execution that interrupts normal flow unless handled. Usually these come in the form of invalid inputs.

4
New cards

TypeError

A TypeError occurs when an operation or function is used with an object of an inappropriate type.

5
New cards

ValueError

A ValueError occurs when the type of a value is correct but the value itself is inappropriate.

6
New cards

KeyError

A KeyError occurs when the code tries to access a dictionary key that does not exist and no fallback is provided.

7
New cards

Stack trace

A stack trace is the error output that shows where an exception occurred in the program.

8
New cards

Debugging

Debugging is the process of finding and fixing errors in code.

9
New cards

Linting

Linting is the process of automatically checking source code for problems such as style issues, suspicious patterns, and possible errors. A linter can flag a functions for not following PEP8 naming style, point out unclear variable names, formatting issues in Python code.

10
New cards

Test

A test is a check used to see whether code behaves as expected for a given input.

11
New cards

Test case

A test case is a specific input together with the expected output or expected error.

12
New cards

Valid input

Valid input is input that matches the required type and structure for a function.

13
New cards

Invalid input

Invalid input is input that does not satisfy the requires type, format, or constraints of a function. An example of this would be passing a list instead of a dictionary.

14
New cards

Boundary case

A boundary case is a test case at the edge of a condition where behaviour may change.