Computer science · University
Conditionals and loops
A Boolean test used to choose whether a block runs.
Prerequisites
Basic computer literacy.
Study notes
Condition
A Boolean test used to choose whether a block runs.
Branch
One possible path selected by a conditional.
Loop
A structure that repeats a block according to a rule.
Iteration
One pass through a repeating loop body.
Worked examples
Which term best matches this description: A Boolean test used to choose whether a block runs.
Condition is the matching concept in this lesson.
Condition
Which term best matches this description: One possible path selected by a conditional.
Branch is the matching concept in this lesson.
Branch
Check your understanding
Which concept would you apply first in a situation where a structure that repeats a block according to a rule.
- Condition
- Loop
- Iteration
- Branch
Name the concept described as: One pass through a repeating loop body.
Which statement about Condition is most accurate?
- A Boolean test used to choose whether a block runs.
- One pass through a repeating loop body.
- A structure that repeats a block according to a rule.
- One possible path selected by a conditional.
Explain one important difference between Condition and Branch.
Answers and marking guidance
Answers and marking notes
- Loop
The scenario directly calls for Loop.
- Iteration
The intended concept is Iteration.
- A Boolean test used to choose whether a block runs.
The definition in the lesson notes gives the required condition.
- Condition: A Boolean test used to choose whether a block runs. Branch: One possible path selected by a conditional.
Credit a clear distinction using both definitions and an appropriate example if supplied.
Further reading and review references
These are reference links, not copied exercises, institutional endorsement or proof of independent review.
AI-assisted preview; independent educational review required. Level labels describe prerequisites, not accreditation or official curriculum alignment.