This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: 1 (12) 2 (8) 3 (15) 4 (15) 5 (15) 6 (25) 7 (10) Tot. (100) Université d’Ottawa Faculté de génie École d’ingénierie et de technologie de l’information University of Ottawa Faculty of Engineering School of Information Technology and Engineering ITI 1220/1620 Fall 2005 Introduction to Computing I FINAL EXAMINATION Length of Examination: 3 hours December 16, 2005, 09:30 Professor: Alan Williams Page 1 of 14 Instructions: Please read carefully! 1. This is a closed-book test. No books, papers, calculators or other electronic devices are permitted. 2. Answer all questions on the question sheet in the area provided. Les réponses en français sont acceptées. Questions answered in pencil will not be re-graded even if there is a marking error. 3. Algorithms are to be described using the format from the lectures and the notes. 4. You can use the back of the question sheet pages, or page 13, for calculations and other work. Pages 13 and 14 can be detached as they will not be marked. 5. If a question appears to be unclear, state a hypothesis and proceed to answer the question. 6. No student will be allowed to leave the exam room during the last 15 minutes of the exam. 7. When time is called at the end of the exam, turn your paper over immediately. Stay in your place, and remain quiet until the proctors have collected all papers and give clearance to leave. Identification: (complete this section using ink) Family name : _________________________________________________ Given names : _________________________________________________ Student number : _______________ Signature :____________________________________ ITI 1220/1620 Final Examination Page 2 of 14 Question 1A) (4 marks) In this question, use only the following ( algorithm format ) Boolean expressions: • comparison operators: <, >, =, ≤ , ≥ , and ≠ • Boolean logical operators: NOT, AND, OR • arithmetic operators: +, -, *, /, and MOD (modulo) • variable names and constants. Use parentheses where necessary. Do not use Java syntax! The Ontario “Drive Clean” program requires that a car must pass an emissions test for licence renewal if both of the following conditions are met: • The car’s model year MY is odd and the current year CY is even, or vice versa • The difference between the current year and the model year is at least 3 but no more than 20....
View Full Document
- Fall '07
- English-language films, Faculté de génie École