Actual Exam
The Final Exam covered:
Sample topics from Chapters 3,4,5 that were not covered on the midterm exam,
but might appear on the final exam
- File operations (references: Textbook 5.2, Lecture Notes, esp 08/25, and H07)
- Opening a file, reading lines from a file, closing the file
- Opening a file for input or output, i.e. open('student.txt','r') vs. open('student.txt','w')
- The idea of a buffer, and why we sometimes need to "flush" the buffer.
- How to use strip() (covered in lecture) and split() (textbook p. 127)
- The extra credit lab lab08 also reviews these concepts
(
no new material is included, just additional practice with these ideas)
- Finding a minimum or maximum (references: Textbook 4.4, lab07)
- Index vs. value—finding the index of the maximum element, vs. finding the value of the maximum element. (see lab07)
- The idea of the run-time stack, and stack frames (reference: H10, Lecture of 09/08/2009)
- Various operations on lists (see practice questions below, as well as lab06, lab07, lab08).
Practice Materials: