This preview shows page 1. Sign up to view the full content.
Unformatted text preview: function does not return anything (it has no return statement). Clearly explain how this function
is able to do its job in spite of this. Refer to speciﬁc properties of pictures in your answer. Test ID: 1680 Test ID: 1680 Part (b) [3 marks]
In the lines that use set_green and set_blue, why do we use the int function? Explain the purpose of
int, and what might happen if we did not include it. Do wn lo ad er
ID : 29 85 UofT Student Buddy @ http://utoronto.studentbuddy.com
This test is copyrighted by the uploader and/or course instructor.
Downloader id is shown and also encrypted throughout the document.
Unauthorized reproduction/distribution is strictly prohibited.
Page 4 of 6
Solution (if any) is NOT audited, so use at your discretion. Test ID: 1680 cont’d. . . 298 Dow nlo ade r ID: 5 Downloader ID:
ID: 1680 Test JUNE 2009 CSC 108H1Y Midterm Exam
80 : 16 ID
st Te Question 4. [7 marks] Complete the following function according to its docstring description. The function is designed to ask for
a valid password (presumably f...
View Full Document
- Spring '08