csc180midterm07 - Page 1 of 12 University of Toronto...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Page 1 of 12 University of Toronto Faculty of Applied Science and Engineering CSC 180S INTRODUCTION TO PROGRAMMING Fall 2007 Midterm Test Examiner: Steve Engels Duration: Two Hours Aids: There are no aids allowed on this exam, only writing devices and ID cards. The use of computing and/or communicating devices is strictly forbidden. Other Instructions: Do not remove any sheets from this test book. Answer all questions in the space provided. No additional sheets are permitted. Do not begin writing until told by your instructor. Keep all bags and notes far from the desk, with only the permitted aids visible. Write your name and student number in the space below, and at the top of each sheet of this exam book. Name: ___________________________________ (Underline last name) Student Number: ___________________________________ Q1. __________ / 25 Q6. __________ / 10 Q2. __________ / 20 Q7. __________ / 10 Q3. __________ / 11 Bonus. _______ / 2 Q4. __________ / 12 Q5. __________ / 12 Total / 100 Page 2 of 12 General Instructions Coding Questions: When you are asked to write code, please be sure that your code is clear and understandable. s be careful with the syntax of your code. s only print to the screen when asked to by the question. s add short comments to help the markers understand your code. To improve clarity, you may also wish to develop your code on the side before writing your final answer in the space provided. Other instructions: Please have your student card on your desk, ready to show the invigilator. You are not permitted to leave the exam room within the first or last 15 minutes of the exam period. Read over all questions before you begin. Please write legibly. Unclear writing is not given the benefit of the doubt. Good luck! Page 3 of 12 Question 1. (25 marks) . Fundamentals . Answer the following questions by providing a very brief and direct answer. 1. (1 mark) . Write your favorite professors name as a string literal. 2. (1 mark) . Declare a variable that can store the length of a song in minutes....
View Full Document

This note was uploaded on 01/10/2011 for the course CSC 180 taught by Professor Na during the Fall '01 term at University of Toronto- Toronto.

Page1 / 12

csc180midterm07 - Page 1 of 12 University of Toronto...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online