Quiz 2

Info

Quiz 2 grades have been released. The answer key is also published here.

Read the first quiz’s release Ed Post for discussion on why we don’t announce averages or other aggregate descriptive stats for quizzes.

Quiz 2 will be held in-class (3:30pm - 4:20pm) on Friday May 2nd 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 an updated 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 between the lecture before the last quiz and up to the lecture before (but not including) this quiz is fair game for appearing.

For Quiz 2 this includes:

  • Functions
  • Lists and Nested Lists

Practice

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

Practice Quiz 2

Practice Quiz 2 Answer Key