Midterm 1 Exam Topics
NoteUpdated for Winter 2025
- Names and name binding
- Mathematical operations
- conditionals
- branching
- Functions
- Data types
- Type conversions
- While Loops
- For loops
- Break statements
- Continue statements
- Nested loops
- Strings
- Formatted strings
- Libraries/Packages
- import statements
- Installing new packages with pip
- Ranges
- Tuples
- Lists
- Nested lists
- List operations (append, remove, etc)
- Indexing
- Slicing
- List comprehensions
- Dictionaries
- Dictionary indexing (keys and values)
- Dictionary comprehensions
- User input
- Reading and writing files
- Exceptions
- Debugging
- testing (doctest and pytest)
Example Exams
WarningThe actual exam will be very different from these examples. They are provided to help give an idea of the format of the exam.
See the list of topics for exactly what will be on the exam.
Exam | Sample | Answer Key |
---|---|---|
Midterm 1 | Sample exam | Solutions |