CSC108H1 Midterm: UTSG CSC 108 summer2011

22 views20 pages
7 Mar 2019
School
Course
Professor
yifanyang and 39659 others unlocked
CSC108H1 Full Course Notes
21
CSC108H1 Full Course Notes
Verified Note
21 documents

Document Summary

Do not turn this page until you have received the signal to start. In the meantime, please read the instructions below carefully. This nal examination paper consists of 11 questions on 20 pages (including this one). When you receive the signal to start, please make sure that your copy of the nal examination is complete. Comments and docstrings are not required except where indicated, although they may help us mark your answers. They may also get you part marks if you can"t gure out how to write the code. You may not use break or continue on this exam. If you use any space for rough work, indicate clearly what you want marked. Assume all input is valid unless otherwise indicated; there is no need to error-check. Beside each code fragment below, show the output that it would create. If it would generate an error say so, and give the reason why. [1 mark] print 12 - 4. 0*3 + 2.