AP Computer Science Vocab

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

1/47

flashcard set

Earn XP

Description and Tags

Definitions from Big Ideas 1-3

48 Terms

1
New cards

Program Statement

A single command or instruction executed by a computer program.

EX: x = x + 1 or calling print('Hello World').

2
New cards

Program Execution / Flow

The order in which individual statements, instructions, or function calls are executed or evaluated.

EX: Top-to-bottom sequential flow interrupted by loops or conditional jumps.

3
New cards

Collaboration

Working jointly with others to produce or create software, incorporating diverse perspectives.

EX: Pair programming where one programmer writes code (driver) while another reviews it (navigator).

4
New cards

Incremental Development

A design strategy that breaks a software project into small, manageable, self-contained pieces added one by one.

EX: Building a checkout system by implementing item selection first, then cart totals, then payment logic.

5
New cards

Iterative Development

A continuous development cycle involving planning, testing, and refining a program through multiple versions.

EX: Releasing a mobile app beta, collecting user feedback, and rolling out version updates based on bugs found.

6
New cards

Event-Driven Programming

Programming where the execution flow is determined by events such as user actions or sensor triggers.

EX: Code executing a specific function only when a user clicks an 'Upload Image' button.

7
New cards

Program Input & Output

Input is data sent to a program; Output is data generated and sent out by the program.

EX: Input: A keystroke or temperature reading. Output: Text rendered on a screen or a printed receipt.

8
New cards

Program Documentation

Written descriptions of code function, structure, algorithms, and development process.

EX: Inline comments (// or #), README files, or API manuals explaining function expectations.

9
New cards

Syntax Error

An error resulting from code that violates the grammar/rules of the programming language.

EX: Forgetting a closing parenthesis ) or typing prnt instead of print.

10
New cards

Logic Error

An error that causes a program to operate incorrectly and produce unexpected outputs, without crashing.

EX: Writing if (age > 18) instead of if (age >= 18) when checking voter eligibility.

11
New cards

Run-Time Error

An error that occurs while the program is executing, causing it to crash unexpectedly.

EX: Attempting to divide a number by zero or accessing an out-of-bounds array index.

12
New cards

Overflow Error

An error that occurs when a calculation produces a value larger than the memory allocated can store.

EX: Adding 1 to an 8-bit integer holding 255, causing it to roll over or error out.

13
New cards

Test Case

A set of conditions or variables under which a tester determines whether a system operates correctly.

EX: Testing a login feature with valid credentials, incorrect passwords, and blank fields.

14
New cards

Bit & Byte

A Bit is a single binary digit (0 or 1). A Byte is a sequence of 8 bits.

EX: Storage sizes: 1 Byte can store a single ASCII character like 'A'.

15
New cards

Binary (Base-2)

A positional numeral system using only two symbols: 0 and 1.

EX: How all computer hardware fundamentally stores memory as voltage states (high/low).

16
New cards

Decimal (Base-10)

Standard human numbering system using digits 0 through 9.

EX: Representing monetary amounts or counting physical objects.

17
New cards

Hexadecimal (Base-16)

A number system using 16 symbols (0–9 and A–F), often used to shorten binary strings.

EX: Color codes in web design, such as #FFFFFF representing RGB white.

18
New cards

Analog Data

Data represented by continuous, real-world physical values rather than discrete numbers.

EX: Sound waves traveling through the air or voltage on a landline telephone cable.

19
New cards

Digital Data

Data represented by discrete, discontinuous numerical values (0s and 1s).

EX: An MP3 audio file converted from a live studio microphone recording.

20
New cards

Sampling

The process of measuring an analog signal at equal periodic intervals to convert it to digital.

EX: Sampling sound waves 44,100 times per second (44.1 kHz) to create CD-quality digital audio.

21
New cards

Abstraction (Data)

Filtering out specific, low-level details to focus on high-level organizational concepts.

EX: Grouping raw bits representing student records into a single Student object.

22
New cards

Lossless Compression

A data compression class that reduces file size without any loss of original data or quality.

EX: Compressing executable program files into .zip archives or saving images as .PNG.

23
New cards

Lossy Compression

A compression class that significantly reduces file size by permanently discarding less noticeable data.

EX: Saving digital photos as .JPEG or streaming music via .MP3.

24
New cards

Metadata

Data that provides information about other data, such as creation date, file size, or location.

EX: EXIF data attached to a smartphone photo displaying GPS coordinates and camera aperture settings.

25
New cards

Clean Data

The process of removing invalid, duplicate, corrupted, or incomplete entries from a dataset.

EX: Removing empty rows or stripping extra spaces from survey entries before running analytics.

26
New cards

Big Data

Datasets so large or complex that traditional data processing application software is inadequate.

EX: Analyzing petabytes of credit card transaction logs globally to detect real-time fraud.

27
New cards

Algorithm

A finite, well-defined sequence of step-by-step instructions for solving a problem.

EX: GPS navigation calculating the optimal driving route between two addresses.

28
New cards



Sequencing

Executing a series of steps in the exact order they are written, top-to-bottom.

EX: Following the steps of a recipe sequentially to ensure a cake rises properly.

29
New cards

Selection

Determining which block of code to execute based on a Boolean conditional test (IF/ELSE).

EX: Redirecting a user to an admin dashboard if user.isAdmin == True.

30
New cards

Iteration

Repeating a process or statement a specified number of times or until a condition is met (FOR/WHILE)

EX: Checking every item in a shopping cart array to sum the total price.

31
New cards

Boolean Logic

Expressions evaluating to strictly TRUE or FALSE using operators like AND, OR, and NOT EX: (age >= 16) AND (hasLicense == TRUE) to determine driving eligibility.

32
New cards

Modulus Operator (MOD)

An arithmetic operation that returns the remainder of integer division. EX: 17 MOD 5 yields 2. Used frequently to determine if a number is even (x MOD 2 == 0).

33
New cards



Variable

An abstraction holding a memory location that stores a value which can change over time. EX: A game variable playerScore updated whenever an enemy is defeated.

34
New cards

Assignment Operator (<-)

Sets or updates the value stored inside a variable. EX: x <- 10 stores the integer 10 inside variable x.

35
New cards

List / Array

An ordered collection of elements stored under a single variable name. EX: students <- ['Alice', 'Bob', 'Charlie']. Note: AP CSP lists use 1-based indexing!

36
New cards

Traversal

Iterating through a collection, accessing or processing each element in sequence. EX: Looping over an employee salary array to apply a 5% inflation raise to everyone.

37
New cards

Procedure / Function

A named, reusable block of code that performs a specific task when called. EX: A procedure calculate Tax(subtotal) used throughout a retail POS system.

38
New cards

Parameter

A variable listed in a procedure's header definition that accepts input values. EX: radius in the procedure definition PROCEDURE calcCircleArea(radius).

39
New cards

Argument

The concrete value passed into a procedure when it is called during program execution. EX: Passing the value 5 into calcCircleArea(5).

40
New cards

Return Statement

Instruction within a procedure that exits the function and sends a result back to the caller. EX: Returning TRUE or FALSE from a checkPasswordMatch() function.

41
New cards

Linear Search

A search algorithm that checks every item in a list sequentially until the target is found. EX: Finding a target contact by scanning an unsorted address book line-by-line.

42
New cards

Binary Search

An efficient search algorithm that repeatedly cuts a sorted list in half. EX: Looking up a word in an alphabetical dictionary by opening to the middle and choosing a side.

43
New cards

Simulation

A simplified, computer-based representation of a complex real-world process or phenomenon. EX: Simulating weather movement or viral transmission across populations without real risk.

44
New cards

Heuristic

A problem-solving technique designed to produce a 'good enough' solution when an exact solution is computationally impractical. EX: The Traveling Salesperson Problem using proximity rules to quickly plot delivery routes.

45
New cards

Undecidable Problem

A computational problem for which no algorithm can ever be created that produces a correct yes/no answer for all inputs. EX: The Halting Problem: determining if an arbitrary program will finish running or loop forever.

46
New cards

Unreasonable Time

Algorithms whose execution time grows exponentially or factorially, rendering them unfeasible for large inputs. EX: Cracking a 256-bit encryption key by attempting every possible combination one by one.

47
New cards

Mutation

Changing the internal state of an object or modifying the contents of an array. EX: Initial State: The student record is created with the name "Alex" and a grade level of 11.

  • The Mutation: At the end of the school year, a method called promoteGrade() is run on Alex's record. This method changes the grade level from 11 to 12.


48
New cards

Exception

A run-time error that happens while a program is running, breaking its normal flow and usually causing it to crash. EX:Dividing an internet by zero