Practice midterms
The two midterms below are meant to give a feel for the length and difficulty
of the actual midterm, and for the breadth/depth
of possible midterm questions. The specific topics/nature of the
actual midterm will of course vary: particularly with respect to which
questions are discussion style and which involve a coding component.
Practice midterm 1
- Pointers:
- Mergesort:
- Command line arguments:
- Dynamic struct allocation/deallocation:
- Linked lists:
Practice midterm 2
- Dynamic allocation:
- Binary search:
- Quicksort:
- File I/O:
- Arrays of structs: