CSCA08H3 Midterm: CSCA08 Midterm Test Fall 2017
Document Summary
Please place a checkmark (x) beside your tutorial session. Do not turn this page until you have received the signal to start. Please ll out the identi cation section and read all instructions before starting. This midterm consists of 4 questions on 12 pages (including this one). When you receive the signal to start, please make sure that your copy is complete. Proper documentation is required for all functions and code blocks. No error checking is required: assume all user input and all argument values are valid. If you use any space for rough work, indicate clearly what you want marked. Please read all questions thoroughly before starting on any work. Write a function called cap mask that takes two strings as input. The rst is a normal string, and the second is a mask containing 0s and 1s. Apply the mask to the string, and return the result.