AP CSP Study Guide: Data Handling & Abstraction

0.0(0)
Studied by 0 people
0%Big Idea 3 Mastery
0%Exam Mastery
Build your Mastery score
multiple choiceMultiple Choice
call kaiCall Kai
Supplemental Materials
Card Sorting

1/23

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

No analytics yet

Send a link to your students to track their progress

24 Terms

1
New cards

Variable

An abstraction inside a program that provides a named memory location to store a value.

2
New cards

Data Types

Types of data that can be held by variables, such as numbers, Booleans, strings, or lists.

3
New cards

Good Variable Names

Descriptive names for variables that enhance code readability, such as score or userName.

4
New cards

Assignment Operator

An operator that allows a program to change the value represented by a variable, denoted by an arrow in pseudocode.

5
New cards

Pseudocode Assignment Syntax

The syntax for assignment in pseudocode is variable ← expression.

6
New cards

Key Rule of Assignment

Assignment in programming is not algebraic; x ← x + 1 means to update x with its current value plus 1.

7
New cards

Swapping Values

A process that uses a temporary variable to swap the values of two variables without loss of data.

8
New cards

Temporary Variable

A variable used to hold a value temporarily during the process of swapping or manipulating data.

9
New cards

MOD Operator

An operator that returns the remainder of division between two numbers.

10
New cards

MOD Example: 10 MOD 3

Evaluates to 1 because 3 goes into 10 three times with a remainder of 1.

11
New cards

Real-World Application of MOD

Used to check if a number is even by evaluating num MOD 2.

12
New cards

Concatenation

The process of joining two or more strings together to form a new string.

13
New cards

String

An ordered sequence of characters enclosed in quotation marks.

14
New cards

List

An ordered collection of elements that can be numbers, strings, or other lists.

15
New cards

Indexing

Accessing items in a list using their position, which in AP CSP starts at 1.

16
New cards

LENGTH Function

Returns the total count of items in a list.

17
New cards

Accessing a List Element

Syntax: list[i] retrieves the value at index i.

18
New cards

Inserting in a List

Shifts items to the right and places a new value at the specified index.

19
New cards

Appending to a List

Adds a value to the very end of a list.

20
New cards

Removing from a List

Deletes an item at a specified index and shifts subsequent items left.

21
New cards

Common Mistake: Assignment Direction

Wrongly assigning with 10 ← score; should be variable ← value.

22
New cards

Zero-Indexing Confusion

Assuming the first item in a list is at index 0, which is incorrect in AP CSP.

23
New cards

Index Out of Bounds

Attempting to access an index outside the limits of a list, which results in an error.

24
New cards

String vs Number Addition

Strings concatenate in operations, e.g., `

Explore top flashcards

flashcards
faf
40
Updated 956d ago
0.0(0)
flashcards
faf
40
Updated 956d ago
0.0(0)