Final Exam
Final Exam: Wednesday, May 23, 2018
NEW!! 18sp final exam, (Solution)
- Exam policies
- Closed book, closed notes.
- The following syntax sheet will be provided. [ PDF ]
- No calculators
- The exam begins promptly at 2:30 and ends at 3:20.
- Points will be deducted from your score if you are writing after time has been called.
- You do NOT need to bring a blue book or mark sense (bubble sheet)
- In questions where you are asked to write code, you do NOT
need to add comments unless explicitly asked for.
- You should only use parts of Python that have been
covered in the class so far.
- All material from the course so far is fair game. Material up
to and including Fri May 18 on Classes is fair game. Material
from lecture, sections, checkins, and homework are all fair game.
Topic List
- Everything prior to the midterm (including files, mutability).
- Rough list of topics since the midterm:
- Data Structures - Tuples, Nested Structures (lists of dicts, dicts of dicts, etc.)
- Interpreting Exceptions - What process would you use to track down bugs like the ones from April 30?
- Debugging - Give multiple examples of using divide and conquer in debugging. Given a piece of code, identify what type of error exists. Create a piece of code that would generate a certain error.
- Testing - Why do we test? How do we test a program? parts of a program? Given a piece of code, write some tests as assertions.
- Program development - What are the benefits of functions? What are stubs and why are they useful?
- Visualization - Nothing beyond knowing how to plot a simple line as we did with the airport delay example on May 7.
- Statistics - Needed to understand HW6 but will not be on the final exam.
- Data Abstraction - Why is data abstraction useful? Why are classes useful? Write simple client code for a class. Implement a simple method in a class.
Sample Exam Problems
We provide a few old exams to help with your studying. Our hope
is that these exams will be useful in your studying, *but you
should NOT take them as a guarantee of exactly what your exam will
be like this quarter*. I would also suggest going back through
problem sheets used in all sections so far as these are good
example questions as well. If you want more practice writing
functions you may also find the examples
from CodingBat to be a
useful way to practice.
Note: Although several of these sample exams include questions on
recursion (e.g. functions that call themselves, writing base
cases), and list comprehensions recursion and list
comprehensions will NOT be on our final exam for 18sp.
You may also want to look at the sample materials from the midterm.
Good luck with your exam studying!