Ap CSP Flashcards

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

1/194

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.

195 Terms

1
New cards

Big Idea 1: Creative Development 🧠

Programming is a collaborative and creative process that brings ideas to life through the development of software.

2
New cards

Computing Innovation

A computing innovation uses a computer program to take in data, transform data, and output data.

3
New cards

Collaboration in Programming

Collaboration can occur in planning, testing, or designing; benefits include shared ideas, better solutions, fewer misconceptions, and less bias.

4
New cards

Pair Programming

Two programmers work together side-by-side on one computer to write the same code or algorithm.

5
New cards

User Interface

The inputs and outputs that allow a user to interact with a piece of software.

6
New cards

Camel Case

Naming convention where the first word is lowercase and each additional word is capitalized. Ex: stopButton

7
New cards

Input

Data sent into a computer for processing.

8
New cards

Output

Data sent from a program to a device.

9
New cards

Program

A collection of instructions that a computing device executes.

10
New cards

Code Segment

A smaller collection of statements that are part of a larger program.

11
New cards

Program Event

An action or occurrence like a click or key press that triggers behavior in a program.

12
New cards

Event-Driven Program

A program that responds to user or system events like clicks or inputs.

13
New cards

Sequential Program

A program that runs instructions in a set order.

14
New cards

Iterative Development Process

A development method where programmers create working prototypes and improve them through repeated cycles.

15
New cards

Incremental Development Process

A method where programmers build and test small parts of the program before adding them to the whole.

16
New cards

Program Documentation

A description of how parts of a program work; helps others understand and maintain the program.

17
New cards

Benefit of Documentation

It improves collaboration and makes the program easier to understand.

18
New cards

Most Common Documentation Style

Comments written directly in the code. Ex: //This on event allows so that clicking this button…

19
New cards

Library

A collection of reusable functions that can be used in different programs.

20
New cards

API (Application Program Interface)

Documentation that explains how functions in a library work, their parameters, and return values.

21
New cards

Syntax Error

An error caused by breaking the rules of the programming language (like punctuation or capitalization mistakes).

22
New cards

Example of Syntax Error

Using 'A' instead of 'a' when variables are case-sensitive.

23
New cards

Logic Error

An error in the program’s logic that leads to incorrect or unexpected results.

24
New cards

Example of Logic Error

A program that prints multiple grades because conditions are not mutually exclusive.

25
New cards

Run-Time Error

An error that occurs while the program is running, like dividing by zero.

26
New cards

Example of Run-Time Error

Display(5/0) causes the program to crash because division by 0 is undefined.

27
New cards

Overflow Error

An error caused by a number exceeding the computer’s allowed value range.

28
New cards

Example of Overflow Error

Storing x <— 2000*365 causes an overflow because the result is too large.

29
New cards

Debugging

The process of finding and fixing errors in a program.

30
New cards
Data
A collection of facts.
31
New cards
Number Base
The number of digits or digit combinations a system uses to represent values.
32
New cards
Decimal System (base 10)
Uses digits 0–9; e.g. “5729” in base 10 represents five thousand seven hundred twenty-nine.
33
New cards
Binary System (base 2)
Uses digits 0 and 1; e.g. “101” represents 5 (4 + 1).
34
New cards
Bit
The smallest unit of information on a computer (0 or 1).
35
New cards
Byte
A group of 8 bits; can represent 256 unique values.
36
New cards
Analog Data
Data measured continuously (e.g., sound volume, clock position).
37
New cards
Sampling
Recording an analog signal’s value at regular intervals to create digital data.
38
New cards
Data Abstraction
Filtering out unnecessary details to focus on the information needed.
39
New cards
Digital Data
Finite set of values approximating analog phenomena (e.g., video length in minutes).
40
New cards
Largest Value Formula
The max value for n bits is 2ⁿ − 1 (e.g., 7 bits → 2⁷ − 1 = 127).
41
New cards
Number of Values Formula
The count of values for n bits is 2ⁿ (e.g., 8 bits → 2⁸ = 256).
42
New cards
Data Compression
Packing data into a smaller space while preserving original information.
43
New cards
Run-Length Encoding
A lossless compression replacing repeats with counts (e.g., FFFFF → 5F).
44
New cards
Lossless Compression
Reduces size without losing any original data; exact reconstruction possible.
45
New cards
Lossy Compression
Reduces size by discarding some data; only an approximation can be reconstructed.
46
New cards
Correlation
A statistical measure (–1 to 1) of how two variables move together; does not imply causation.
47
New cards
Outlier
A data point that significantly deviates from the overall pattern.
48
New cards
Metadata
Data about data (e.g., file creation date); does not alter the primary data.
49
New cards
Data Cleaning
The process of fixing or removing incomplete, invalid, or inconsistent data.
50
New cards
Big Data
Extremely large datasets that may require distributed processing.
51
New cards
Data Mining
Examining large datasets to uncover patterns, correlations, or useful information.
52
New cards
Data Transformation
Modifying, filtering, combining, or visualizing data (e.g., converting liters→mL).
53
New cards
Bar Chart
A graph using rectangular bars to show categorical data values.
54
New cards
Scatter Plot
A chart of dots showing the relationship between two numeric variables.
55
New cards
Line Graph
A graph using lines to connect data points in a sequence (e.g., trend over time).
56
New cards
Histogram
A bar chart showing frequency distributions over continuous ranges.
57
New cards
Variable
A placeholder in your program for a value, named with letters or words.
58
New cards
Assignment Operator
Symbol (e.g., `=`) used to give a variable a value.
59
New cards
Global Variable
A variable declared outside functions/events; accessible anywhere.
60
New cards
Local Variable
A variable declared inside a function/event; exists only during its execution.
61
New cards
Data Type
The category of data a variable can hold (integer, string, list, boolean).
62
New cards
Integer
A whole number, positive or negative (e.g., 5 or -3).
63
New cards
String
Text enclosed in quotes (e.g., "Hello, CSP!").
64
New cards
Substring
A part of a string extracted from a larger string.
65
New cards
Concatenation
Using `+` to join two strings (e.g., "sun" + "rise" = "sunrise").
66
New cards
Slice
`slice(str, start, length)` returns a substring from `str`.
67
New cards
List
An ordered sequence of elements (also called an array).
68
New cards
Boolean
A true/false value used in conditionals.
69
New cards
NOT Operator
`!` reverses a boolean: `!true` → `false`.
70
New cards
AND Operator
`&&` returns true only if both operands are true.
71
New cards
OR Operator
`||` returns true if at least one operand is true.
72
New cards
Conditional (If)
Executes code only when its Boolean condition is true.
73
New cards
Else Statement
Executes alternative code when the `if` condition is false.
74
New cards
Nested Conditional
An `if` or `else` placed inside another `if`/`else`.
75
New cards
Element
An individual item in a list.
76
New cards
Index
The position number of an element in a list (starts at 1).
77
New cards
Accessing by Index
Retrieving a list element using its index (e.g., `list[2]`).
78
New cards
Assign Element
Changing a specific list element’s value by index.
79
New cards
Insert
Element: add a new item at a specified index, shifting others.
80
New cards
Append
Add a new element to the end of a list.
81
New cards
Remove
Delete an element from a list by index, shifting others.
82
New cards
Length of List
Return the number of elements in a list.
83
New cards
Loop Through List
Use a loop to visit each element in a list.
84
New cards
Filter List
Create a subset of list elements that meet a condition.
85
New cards
Linear Search
Check each list element in order until the target is found.
86
New cards
Binary Search
Search a sorted list by repeatedly halving the search interval.
87
New cards
Procedure (Function/Method)
A named group of instructions you can reuse.
88
New cards
Parameter
A variable listed in a procedure’s definition.
89
New cards
Argument
The actual value passed into a procedure’s parameter.
90
New cards
Return Statement
Ends a function and optionally sends back a value.
91
New cards
Procedural Abstraction
Simplifying code by using procedures to hide details.
92
New cards
Algorithm
A step-by-step set of instructions to solve a problem.
93
New cards
Sequencing
Executing instructions in a specific, linear order.
94
New cards
Selection
Choosing between paths using conditionals (`if`/`else`).
95
New cards
Iteration
Repeating a set of instructions using loops.
96
New cards
For Loop
A loop that runs a known number of times (`for i in …`).
97
New cards
While Loop
A loop that runs as long as its condition remains true.
98
New cards
Infinite Loop
A loop whose terminating condition is never met.
99
New cards
MOD Operator
`a mod b` returns the remainder when a is divided by b.
100
New cards
PEMDAS
Order of operations in expressions (Parentheses, Exponents, …).