Final Exam

Info

Final Exam grades have been released on Gradescope. The Answer Key is here.

Info

The Final exam will be on Wednesday, 5th June 2024 at 8:30am to 10:20am in the lecture hall (ECE 105). Be on time! We will aim to start promptly in order to give as much time as possible to complete the exam. No matter when you arrive, we will “call time” (pencils down, exam is done) exactly 110 minutes after starting. As such, if you arrive late, you get less time!

What to bring

  • Yourself.
  • Your UW ID card (we will check these!).
  • A pen or pencil and eraser.
  • Water
  • A 1-page cheatsheet
    • Note: we will provide a reference sheet that includes some documentation that you won’t have to memorize or include on your own cheatsheet.
    • Note 2: This reference sheet may change between now and the exam date.

Where to sit

Seating chart is by section.

Format

This is a hand-written test, meaning NO ELECTRONIC DEVICES of any kind allowed, including calculators. 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.

  • Given a program, function, or code snippet and possible inputs, what is the output?
  • What is the value of variables X, Y, Z on line N?
  • Fill in the code: Replace the blanks on line N with an appropriate statement or expression
  • Evaluate expressions
  • Write a function that takes … and returns …
  • Please describe (some concept from the course) and why it’s important

Topics

Every topic covered in the quarter is fair game for appearing on the exam.

The short list of topics are:

  • Variables, Statements, Expressions
  • For loops, range, nested loops
  • If statements and conditionals (booleans)
  • Functions, function arguments, and return statements
  • Lists and nested lists
  • File input/output (I/O)
  • Dictionaries and nested dictionaries
  • Sets
  • Graphs
  • Sorting
  • Testing, debugging, and program errors
  • Basic Classes

Practice

Warning

Exams from past quarters are either completely different, or contain possibly outdated practices. When in doubt about whether a topic will be covered or if an answer key seems different than you expect, ask on Ed.

Notes and Caveats

For all past Final exams, the following caveats apply:

  • Our 24sp exam assumes Python 3.10+.
    • As such ALL print statements should have (). E.g., print() or print("Hello")
    • Division (/) always does float division. E.g., 1 / 2 evaluates to 0.5. (In past Python versions, it would have been 0. That is no longer the case.)
  • We will not ask you to “draw the environment”.
  • Many past exams refer to “stack frames.” These are similar to the “Frames” in PythonTutor.

Practice Exams

Here is a document along with its key containing questions from past finals along with topics you may be tested on.

If you prefer, you can also look at past finals by year: