{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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

Info icon This 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
Image of page 1

Info icon This 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 . . .
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 ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern