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

  1. Pointers:

  2. Mergesort:

  3. Command line arguments:

  4. Dynamic struct allocation/deallocation:

  5. Linked lists:


Practice midterm 2

  1. Dynamic allocation:

  2. Binary search:

  3. Quicksort:

  4. File I/O:

  5. Arrays of structs: