Midterm 2 Practice Exam, Problem 6: Devices and File Commands¶
Midterm 2 practice exam, problem 6 of 6 · Length: 8:13 · Exercises: 41k_devices (Week 11) · 47k_file_commands (Week 12) · Problems: Practice exam (PDF) · Answer key: Solutions (PDF)
Two parts, worked on the exam's pages 15 to 17: (a) what rx_ready() and getc() return when rx_ready tests THRE instead of DR; (b) what each of seven shell commands prints, in a table, and why touch on a directory prints nothing. 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