Booleans and Conditionals, and Loops

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

1/17

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 4:30 PM on 9/28/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

18 Terms

1
New cards

Boolean expression

An expression that evaluates to true or false

2
New cards

condition

the Boolean expression checked by an if statement or loop

3
New cards

if statement

Executes code only when its condition is true

4
New cards

if-else statement

Executes one block when the condition is true and another block when it is false

5
New cards

Conditional tracing

Evaluate the condition first, then follow only the block selected by its result

6
New cards

Loop

repeats a block of code while a condition is true

7
New cards

While loop

checks its condition and repeatedly executes its body while the condition remains true

8
New cards

For Loop

places initialization, condition and update in one loop header

9
New cards

loop update

changes the loop variable after each repetition

10
New cards

loop body

the statements repeated during every loop execution

11
New cards

iteration

one complete repetition of a loop

12
New cards

nested loop

a loop located inside another loop

13
New cards

Nested-loop count

Multiply the number of outer loop repetitions by the number of inner loop repetitions when the inner loop runs equally each time

14
New cards

Infinite loop

a loop that never stops b/c its condition never becomes false

15
New cards

Loop tracing

record the variables, condition result, output, and update for each iteration

16
New cards

Accumulator

A variable that collects a total or builds a result during a loop

17
New cards



18
New cards

accumulation loop strategy

initialize a value before the loop, update it inside the loop, and return the result afterward