{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

CSC108H1_09SUMMER1_608 - Test ID 1680 Test ID 1680 EA SE...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
PLEASE HAND IN UNIVERSITY OF TORONTO Faculty of Arts and Science CSC 108H1Y Instructor: Daniel Zingaro Duration — fifty minutes PLEASE HAND IN Examination Aids: None. Student Number: Last (Family) Name(s): First (Given) Name(s): Do not turn this page until you have received the signal to start. (In the meantime, please fill out the identification section above, and read the instructions below carefully .) This examination consists of 4 questions on 6 pages (including this one). Instructions: Check to make sure that you have all 6 pages. Read the entire exam before you start. Not all questions are of equal value, so budget your time ac- cordingly. You do not need to add import lines or do error checking If you use any space for rough work, indicate clearly what you want marked. Marking Guide # 1: / 5 # 2: / 7 # 3: / 6 # 4: / 7 TOTAL : /25 Good Luck! Page 1 cont’d . . . utoronto.studentbuddy.com est ID: 1680 Downloader ID: 2985 Test ID: 1680 Downloader ID: 2985 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. Solution (if any) is NOT audited, so use at your discretion. Downloader ID: 2985 Test ID: 1680 Downloader ID: 2985 Downloader ID: 2985 Test ID: 1680 Test ID: 1680 Downloader ID: 2985 Downloader ID: 2985 Test ID: 1680 Test ID: 1680 Test ID: 1680 Test ID: 1680 Test ID: 1680 Test ID: 1680 1 / 6
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
CSC 108H1Y Midterm Exam JUNE 2009 Question 1. [5 marks] Complete the following function according to its docstring description. def rep_chars (s, num): ’’’Return a string consisting of each character of s repeated num times. For example, rep_chars (’abc’, 2) returns aabbcc’’’ Page 2 of 6 cont’d . . .
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}