Quiz 4

Quiz 4 will be held (2:30pm - 4:20pm) on Thursday June 12th 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 the 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 that we have covered so far throughout the class could appear on the quiz but we will be testing you more specifically on the following topics.

For Quiz 4 this includes:

  • Classes
  • Nested Structures
  • CSV DictReader

Practice

Practice quiz

Practice quiz aswer key

Extra practice