Conceptual Answers
The answers are available here: midterm solutions.
Exam Information
The exam will be on Monday, June 22.
- Concepts Test:
- It will be like a quiz (or quick quiz), only larger.
- You cannot refer to any books, notes, programs, or other resources.
- Programming Test:
- You will be writing at least one program during the time.
- You will have access to:
- course material (e.g. notes and posted programs)
- the Python documentation
- CourseWeb
- textbook (you must bring your own)
- any notes/programs you wrote
- You may not communicate with others during the exam
- You may bring a laptop. If you do, you must sit in a seat where the TA can easily see your screen.
Material to Review
Some review material has been available throughout the semester:
- Quick quizzes (available on CourseWeb)
- Review questions at the start of each lecture
- Quiz 1
In addition, here is a set of sample questions: midterm-review.pdf (doc) [updated June 13]
Here are the list of programming exercises from the lecture notes: midterm-review-programming.html
Note that there will not be answers posted for the questions above. If you would like to know whether your answers are correct, you may check the lecture notes or the textbook, test your answers in Python, or send your answers to the instructor and he will provide feedback on your answers.
There will be a review session the class before the exam. Please complete the Midterm Review Survey on CourseWeb (in the Surveys section). Responses received by Monday night on June 15 will be considered when preparing the review session.
The midterm covers the following topics:
- Python basics
- Numbers and arithmetic
- Strings
- Variables
- Comments
- print
- number formatting
- getting help
- input
- importing modules
- Boolean Expressions
- Boolean literals (True, False)
- Relational Operators
- Logical Operators
- Comparing floats
- if statements
- Loops
- while loops
- for loops
- range function
- Lists and Tuples
- Creating lists/tuples
- Indexing and Slicing
- Common list operations
- List Comprehension
- tuples
- Files
- Opening and closing files
- Writing to files
- Reading from files
- Checking for existence of files