week-02.json
json Container
READ_ONLY_ACCESS
[ { "id": "python-w02-000", "front": "Week 2 Diagnostic: In Python, which of the following evaluates to False in a boolean context?", "back": "Answer: C — 0, empty collections `[]`, `{}`, `()`, empty strings `''`, and `None` evaluate to False. Non-empty collections like `[0]` and non-empty strings like `'False'` are truthy." }, { "id": "python-w02-001", "front": "Week 2 Diagnostic: What is the value of `True or (5 / 0 == 1)`?", "back": "Answer: B — Python uses short-circuit evaluation: since the left operand of `or` is True, the right operand is never evaluated, avoiding ZeroDivisionError." } ]
Document outline

Keep your place and jump directly to a heading.

Table of contents

No note selected

Open a chapter to see its outline, backlinks, and sources here.