Control Structures in AP CSP: Making Algorithms Decide and Repeat

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/24

Last updated 3:08 PM on 3/12/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

25 Terms

1
New cards

Boolean expression

An expression that evaluates to exactly one of two values: true or false; used to make decisions in control structures.

2
New cards

Relational (comparison) operator

An operator that compares two values and produces a Boolean result (true/false), such as =, ≠,

3
New cards

Logical operator

An operator that combines or modifies Boolean values, such as AND, OR, and NOT.

4
New cards

Equality operator (=) in AP CSP pseudocode

Tests whether two values are the same (e.g., x = 10).

5
New cards

Inequality operator (≠) in AP CSP pseudocode

Tests whether two values are different (e.g., answer ≠ "").

6
New cards

Less than (<) operator

True when the left value is smaller than the right value (e.g., score < 50).

7
New cards

Greater than (>) operator

True when the left value is larger than the right value (e.g., age > 13).

8
New cards

Less than or equal (≤) operator

True when the left value is smaller than or equal to the right value (e.g., temp ≤ 32).

9
New cards

Greater than or equal (≥) operator

True when the left value is larger than or equal to the right value (e.g., tries ≥ 3).

10
New cards

AND

A logical operator where A AND B is true only when both A and B are true.

11
New cards

OR (inclusive OR)

A logical operator where A OR B is true when at least one of A or B is true (including when both are true).

12
New cards

NOT

A logical operator that flips a Boolean value (NOT true → false; NOT false → true).

13
New cards

Selection

The control-flow idea that a program chooses which block of code to execute based on a Boolean expression (typically via conditionals).

14
New cards

Conditional

A control structure that chooses between different actions based on whether a Boolean expression is true or false.

15
New cards

IF statement (AP CSP)

Runs a block of statements only when its condition is true; if the condition is false, the block is skipped.

16
New cards

IF-ELSE statement (AP CSP)

Runs the IF block when the condition is true; otherwise runs the ELSE block, ensuring exactly one of the two blocks executes.

17
New cards

Compound condition

A Boolean expression that uses logical operators (AND/OR/NOT) to combine multiple comparisons into one decision.

18
New cards

Nested conditional

A conditional inside another conditional, used for multi-step decision-making where later tests depend on earlier outcomes.

19
New cards

Else-if chain (often represented by nesting)

A multi-way decision pattern that checks conditions in order so that at most one category/action is chosen.

20
New cards

Condition ordering (in nested conditionals)

The need to test more specific/higher-threshold conditions first so broader conditions don’t “catch” cases too early.

21
New cards

Iteration

Repeating a set of instructions multiple times; implemented using loops.

22
New cards

REPEAT n TIMES

A count-controlled loop that runs a fixed number of times when you know the number of repetitions in advance.

23
New cards

REPEAT UNTIL (condition)

A condition-controlled loop that repeats while the condition is false and stops when the condition becomes true.

24
New cards

FOR EACH item IN list

A list-traversal loop that processes every element of a list without manually managing an index.

25
New cards

Infinite loop

A loop that never stops, usually because the variables affecting the stopping condition never change inside the loop.

Explore top notes

note
AP Music Theory Ultimate Guide
Updated 1072d ago
0.0(0)
note
Human Geography Unit 5
Updated 347d ago
0.0(0)
note
Data Trends
Updated 1149d ago
0.0(0)
note
Fluids: chapter 8
Updated 480d ago
0.0(0)
note
AP Music Theory Ultimate Guide
Updated 1072d ago
0.0(0)
note
Human Geography Unit 5
Updated 347d ago
0.0(0)
note
Data Trends
Updated 1149d ago
0.0(0)
note
Fluids: chapter 8
Updated 480d ago
0.0(0)

Explore top flashcards

flashcards
Frans HCE 11
53
Updated 1094d ago
0.0(0)
flashcards
IMENICE
32
Updated 393d ago
0.0(0)
flashcards
abeka history 10 section 5.1
23
Updated 920d ago
0.0(0)
flashcards
Culture Quiz #2
24
Updated 473d ago
0.0(0)
flashcards
SAT Math Formulas
20
Updated 234d ago
0.0(0)
flashcards
Ap psych unit 1 vocab
36
Updated 933d ago
0.0(0)
flashcards
Frans HCE 11
53
Updated 1094d ago
0.0(0)
flashcards
IMENICE
32
Updated 393d ago
0.0(0)
flashcards
abeka history 10 section 5.1
23
Updated 920d ago
0.0(0)
flashcards
Culture Quiz #2
24
Updated 473d ago
0.0(0)
flashcards
SAT Math Formulas
20
Updated 234d ago
0.0(0)
flashcards
Ap psych unit 1 vocab
36
Updated 933d ago
0.0(0)