D522 Errors/Debug

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/15

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

16 Terms

1
New cards

bug

An error in a program.

2
New cards

debug

finding and fixing problems and errors in a program

3
New cards

Syntax error

An error that results when an instruction does not follow the syntax rules or grammar of the programming language.

4
New cards

Logical error

An error in a program that produces unintended or undesired output, where the syntax is correct but some other human error has occurred.

5
New cards

Run-time error

A mistake in a program that happens only when the program is actually run, such as a program attempting to access memory that does not exist.

6
New cards

adding extra indentation is an example of

syntax error

7
New cards

spelling mistakes are an example of

syntax error

8
New cards

missing : or { } or ( ) is an example of

syntax error

9
New cards

The program is printing out the wrong name of the student, this is an example of

logical error

10
New cards

trying to print out the 6th element in an array of 5 elements is an example of

run-time error

11
New cards

The built-in Python debugger allows developers to pause program execution, inspect variables, and step through the code.

pdb

12
New cards

a popular Python IDE comes with a powerful debugger that provides features like stepping through the code, breakpoints, and variable inspection.

PyCharm Debugger

13
New cards

a popular IDE that includes a versatile debugger with support for remote debugging, multi-threaded debugging, and conditional breakpoints.

Visual Studio Code Debugger

14
New cards

Built-in logging module can be used to record the flow of the program and help identify issues

Logging

15
New cards

Tools like pylint and flake8 can catch potential issues in the code that might lead to errors.

Linter

16
New cards

Tools like cProfile and memory_profiler can help identify performance bottlenecks.

Profiling Tools