Midterm 1 Solutions¶
Midterm 1 was given on Thursday, October 15, in two versions, one for each
section. Both ask the same five problems with different inputs, addresses and
orders of the options, and two parts differ more than that: 1(c) changes
bytecopy's declaration in a different way, and 4(d) asks for longest_line in
Section 01 and longest_word in Section 02. Each version is posted here, blank
and with its key, and a video for each problem works the key on that exam's own
pages.
Work the blank exam on paper before you open the key or a video. Reading a solution feels like learning and mostly is not.
Section 01¶
Midterm 1, Section 01 (PDF, 11 pages) · Solutions (PDF, 11 pages): the exam as Section 01 took it, and its answer key.
Solution videos, one per problem, each working the answer key on the exam's own pages: Problem 1 · Short Questions (11:42) · Problem 2 · Process States (9:59) · Problem 3 · Scheduling Policies as Traits (9:14) · Problem 4 · Streaming with O(1) State (10:06) · Problem 5 · The Free List and a Page Table (12:18).
Section 02¶
Midterm 1, Section 02 (PDF, 11 pages) · Solutions (PDF, 11 pages): the exam as Section 02 took it, and its answer key.
Solution videos, one per problem, each working the answer key on the exam's own pages: Problem 1 · Short Questions (12:25) · Problem 2 · Process States (10:02) · Problem 3 · Scheduling Policies as Traits (9:28) · Problem 4 · Streaming with O(1) State (10:28) · Problem 5 · The Free List and a Page Table (12:40).