1/17
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
Boolean expression
An expression that evaluates to true or false
condition
the Boolean expression checked by an if statement or loop
if statement
Executes code only when its condition is true
if-else statement
Executes one block when the condition is true and another block when it is false
Conditional tracing
Evaluate the condition first, then follow only the block selected by its result
Loop
repeats a block of code while a condition is true
While loop
checks its condition and repeatedly executes its body while the condition remains true
For Loop
places initialization, condition and update in one loop header
loop update
changes the loop variable after each repetition
loop body
the statements repeated during every loop execution
iteration
one complete repetition of a loop
nested loop
a loop located inside another loop
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
Infinite loop
a loop that never stops b/c its condition never becomes false
Loop tracing
record the variables, condition result, output, and update for each iteration
Accumulator
A variable that collects a total or builds a result during a loop
accumulation loop strategy
initialize a value before the loop, update it inside the loop, and return the result afterward