CSC 141 / QUIZ 2 / UNGRADED PRACTICE
A little practice before Tuesday.
Twelve short questions to help you prepare for Quiz 2. Predict first, choose an answer, then read the explanation.
Quiz: Tuesday, September 29, 2026, 11:00–11:15 AM.
Classes 6–7. Ten multiple-choice questions on nested decisions, testing, and debugging.
These are different questions from the graded quiz. Practice as often as you like. No name, student ID, or submission is required; this page does not record a grade.
Course home · Quiz 1 practice
What to review
- Nested if / else and matching each else to its if by indentation.
- if / elif chains, including why the order of conditions matters.
- Boundary testing: choosing inputs below, at, and above a threshold.
- Syntax errors, runtime errors, and logic errors, and how to tell them apart.
For each snippet, trace the conditions from top to bottom, track which branch runs, and write the exact output before checking it. The quiz will not ask you to write a complete program.