Quiz 4: Conditionals
Learning Goals
Students should be able to:
- Predict/trace the operation of nested and chained conditionals
- Reason about and predict the execution flow of code in the presence of conditional, assignment, and return statements
- Model the execution of code without running it on a computer
- Translate the behavior of code into its semantic meaning, and compare the semantics of multiple code snippets
- Write complex conditionals
- Solve problems using conditional statements
- Translate English problem descriptions into code
- Although earlier versions of this page indicated that
whileloops would be covered on Quiz 4,whileloops will not be covered on Quiz 4. The will be covered on Quiz 5 instead. You can ignore Question 3 onwhileloops in this week's Study Guide.
Study Guide
Blank (fill in your solutions)
Solutions
After your quiz is graded by instructors, you will get an email from Gradescope. Solutions for individual quiz questions are provided in the Gradescope rubric.