Skip to content

Midterm 2 Practice Exam, Problem 4: Console Input and the Shell

Midterm 2 practice exam, problem 4 of 6 · Length: 9:04 · Exercises: 45k_console (Week 12) · 46k_shell (Week 12) · Problems: Practice exam (PDF) · Answer key: Solutions (PDF)

Three parts, worked on the exam's pages 9 to 11: (a) two calls to intr() draining the UART into the ring buffer, in a table; (b) the value of cmd, the value of arg and what exec does for three lines; (c) what an exec that splits at every single space prints for three lines. The answer key's handwriting is written onto the exam page as each step is worked.

Download the video (MP4, 15 MB) · Captions (WebVTT) · All six problems