Python Conditionals Quiz
Quiz Topic check Interactive

Conditionals — check your understanding

Review the diagram, then answer the MCQs. Aim for a full score before Practice.

Picture this: if / elif / else

One question, one winning branch.

conditionTrue/False
→
if bodywhen True
→
else bodywhen False

Diagram — If / elif / else decision

condition? if True → block A elif → block B else → block C Only one branch runs for a chain of if / elif / else.

Quick review

Use this quiz like the AI Workshop check: teach with visuals, then verify with questions.

Conditionals — Topic Quiz

Check understanding

Answer all questions, then click Check answers. Use this before Practice in the editor.

Q1. What does `if` control?

Q2. In if / elif / else, how many branches run?

Q3. What is `n > 0` when n is -3?

Q4. Leap year logic mainly checks divisibility by…

Score: —