StudyBrixFree worksheets, study guides and courses

Computer science · lesson 2 of 4

Conditionals and loops

A Boolean test used to choose whether a block runs.

University8 practice questionsNotes + worked examples

Learn the ideas

Prerequisites: Basic computer literacy.

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

Example 1

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

Example 2

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

8 questions

Decimals or fractions are accepted for numeric answers. Proofs and written responses use sample answers and require human marking. This is practice, not a protected examination.

1 Which term best matches this description: A Boolean test used to choose whether a block runs.

Show answer and explanation

Condition

Condition is the matching concept in this lesson.

2 Which term best matches this description: One possible path selected by a conditional.

Show answer and explanation

Branch

Branch is the matching concept in this lesson.

3 Which concept would you apply first in a situation where a structure that repeats a block according to a rule.

Show answer and explanation

Loop

The scenario directly calls for Loop.

4 Name the concept described as: One pass through a repeating loop body.

Show answer and explanation

Iteration

The intended concept is Iteration.

5 Which statement about Condition is most accurate?

Show answer and explanation

A Boolean test used to choose whether a block runs.

The definition in the lesson notes gives the required condition.

6 Explain one important difference between Condition and Branch.

Sample answer and marking guidance

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.

7 Give a short example showing how Loop would be used in practice.

Sample answer and marking guidance

A valid example should demonstrate this idea: A structure that repeats a block according to a rule.

Credit a relevant scenario that applies the concept rather than merely naming it.

8 Summarize why Iteration matters in the lesson “Conditionals and loops”.

Sample answer and marking guidance

Iteration matters because One pass through a repeating loop body.

Credit the core purpose, scope and any important limitation from the notes.

Further reading and review references

These are reference links, not copied exercises, institutional endorsement or proof of independent review.