๐Ÿ“– Crammy ยท All study guides
AP Computer Science Principles ยท Unit 2 ยท Encoding Information

Data & Representation: every key term you need (+ practice quiz)

20 flashcard terms for AP Computer Science Principles Unit 2, written to match the course framework. Study them here, then drill them as interactive flashcards, or test yourself with the 5-question quiz โ€” free, no account needed.

Study this unit free โ†’
Algorithm
Step-by-step procedure for solving a problem; can be represented in pseudocode or flowcharts.
Pseudocode
Simplified code-like language describing algorithms without specific programming syntax.
Sequence
Algorithm structure where steps execute in order from top to bottom.
Selection
Algorithm structure using conditionals (if/else) to choose different paths based on conditions.
Iteration
Algorithm structure using loops to repeat steps multiple times (for, while).
Conditional
Decision statement (if/else) that executes code based on whether condition is true or false.
Loop
Repetition structure that executes code multiple times; types include for loops and while loops.
Variable
Named container storing a data value that can change during program execution.
Data Type
Classification of data: integer, string, boolean, floating-point, etc.
String
Sequence of characters (letters, numbers, symbols) treated as text data.
List/Array
Ordered collection of elements accessible by index; stores multiple values in one variable.
Function
Reusable block of code performing a specific task; takes input (parameters) and may return output.
Parameter
Input variable in a function definition; specifies what data the function accepts.
Return Value
Output value that a function sends back to the calling code.
Scope
Region of code where a variable is accessible; local scope (within function) vs. global scope.
Debugging
Process of finding and fixing errors (bugs) in code.
Logic Error
Code runs without crashing but produces incorrect results due to flawed algorithm.
Syntax Error
Mistake in code structure preventing the program from running.
Flowchart
Visual diagram using symbols to represent algorithm steps and decision points.
Abstraction
Process of hiding complex details and showing only essential features.
Turn these into flashcards & quizzes โ†’

More AP Computer Science Principles guides