# Conditionals and loops

> A Boolean test used to choose whether a block runs.

Course: [Python programming foundations](https://studybrix.com/en/courses/python-programming/index.md)
Level: university
Prerequisites: Basic computer literacy.

## 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.

## Practice questions

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

A. Loop
B. Iteration
C. Condition
D. Branch

Answer: Condition

Explanation: Condition is the matching concept in this lesson.

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

A. Branch
B. Condition
C. Loop
D. Iteration

Answer: Branch

Explanation: 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.

A. Condition
B. Loop
C. Iteration
D. Branch

Answer: Loop

Explanation: The scenario directly calls for Loop.

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

Answer: Iteration

Explanation: The intended concept is Iteration.

### 5. Which statement about Condition is most accurate?

A. A Boolean test used to choose whether a block runs.
B. One pass through a repeating loop body.
C. A structure that repeats a block according to a rule.
D. One possible path selected by a conditional.

Answer: A Boolean test used to choose whether a block runs.

Explanation: The definition in the lesson notes gives the required condition.

### 6. Explain one important difference between Condition and Branch.

Sample answer / marking guidance: Condition: A Boolean test used to choose whether a block runs. Branch: One possible path selected by a conditional.

Explanation: 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 / marking guidance: A valid example should demonstrate this idea: A structure that repeats a block according to a rule.

Explanation: 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 / marking guidance: Iteration matters because One pass through a repeating loop body.

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

## Further reading

- https://docs.python.org/3/tutorial/

Original AI-assisted educational draft; not independently teacher-reviewed. References support further study, not copied exercises, affiliation or curriculum accreditation.
