AP Computer Science Principles: Code Errors

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

1/7

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering the three main types of programming errors and related concepts for the AP CSP exam.

Last updated 4:19 PM on 10/4/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

8 Terms

1
New cards

Syntax Error

An error that breaks the rules of a programming language so badly that the code never runs and crashes before it ever starts.

2
New cards

Runtime Error

An error that occurs when a program starts executing successfully, but crashes partway through execution.

3
New cards

Logical Error

An error where the program runs completely without crashing, but produces an incorrect or unexpected result at the end.

4
New cards

Name Error

A specific runtime error in Python caused by typo-ing a variable name or attempting to use a variable before it has been set.

5
New cards

Index Error

A specific runtime error in Python that occurs when trying to access an index position outside the valid bounds of a list.

6
New cards

Type Error

A specific runtime error in Python that occurs when attempting an invalid operation between incompatible data types, such as concatenating an integer with a string.

7
New cards

Rounding Error

An unexpected result caused by floating-point representation limits in Python (such as 0.1+0.1+0.10.1 + 0.1 + 0.1 not equaling 0.30.3), which functions as a logical error.

8
New cards

Scratch

A block-based programming language that has no syntax errors because its block structure prevents syntax rule violations, and automatically initializes variables to 0.