Quiz 1

Quiz 1 will be held in-class (3:30pm - 4:20pm) on Friday April 18th in (SMI 120). If you require DRS accommodations for the midterm exam, please schedule to take the exam with the DRS Testing Center.

What to bring

  • Yourself.
  • Your UW ID card.
  • A pen or pencil and eraser.
  • Water
  • A 1-page cheatsheet
    • Note: we will provide you a copy of this reference sheet that includes some documentation that you won’t have to memorize or include on your own cheatsheet.
    • 1-page means a single 8.5”x11” (US Letter) sized piece of paper, front and back.

Format

This is a hand-written test, meaning NO ELECTRONIC DEVICES of any kind allowed. Any math on the exam will be limited to simple arithmetic; we’re assessing for Python and programming, not for math!

Question types may include some of the following. Note: this is not an exhaustive list, nor will all of these formats appear. This list is meant to give you an idea of what might possibly appear on the exam.

  • Figure out the ouput: Given a program, function, or code snippet and possible input, what is the output?
  • Dive into the variables: What are the values of variables X, Y, and Z at line N?
  • Evaluate an expression: What does this expression evaluate to?
  • Fill in the code: Replace the blanks on line N with an appropriate statement or expression.
  • Write code: Write a piece of code that satisfies the given specification.

Topics

Every topic up to the lecture before (but not including) the quiz is fair game for appearing. This includes:

  • Variables, Statements, Expressions
  • For loops, range, nested loops
  • If statements and conditionals
  • Lists

Practice

We have written a practice quiz that is likely to be similar to the actual quiz:

Practice Quiz 1

Practice Quiz 1 Key