Mathematical Expressionand Reasoning for Computer Science
COMPUTER S 165

Fall 2012
CSC 165
Tutorial # 2
Fall 2012
As in Tutorial 1, suppose that you are given seven dierent programs A, C, E, G, I, K, M , each meant to carry out
the same task, where programs C, G, K, M are written in Python and programs A, E, I are written in Java. Let
P
Mathematical Expressionand Reasoning for Computer Science
COMPUTER S 165

Fall 2012
CSC 165 H1 / L5101
Quiz # 4 Solutions
11 October 2012
Note: This le contains sample solutions to the quiz together with the marking scheme and comments
for each question. Please read the solutions and the marking schemes and comments carefully. Make sure
Mathematical Expressionand Reasoning for Computer Science
COMPUTER S 165

Fall 2012
CSC 165
Tutorial # 1 Sample Solutions
Fall 2012
You are given seven dierent programs A, C, E, G, I, K, M , each meant to carry out the same task, where programs
C, G, K, M are written in Python and programs A, E, I are written in Java.
1. Suppose that pro
Mathematical Expressionand Reasoning for Computer Science
COMPUTER S 165

Fall 2012
CSC 165 H1 / L5101
27 September 2012
Quiz # 3 Solutions
Note: This le contains sample solutions to the quiz together with the marking scheme and comments
for each question. Please read the solutions and the marking schemes and comments carefully. Make sur
Mathematical Expressionand Reasoning for Computer Science
COMPUTER S 165

Fall 2012
CSC 165 H1 / L5101
Midterm Test Solutions
30 October 2012
Note to Students: This le contains sample solutions to the term test together with the marking
scheme and comments for each question. Please read the solutions and the marking schemes and comments
Mathematical Expressionand Reasoning for Computer Science
COMPUTER S 165

Fall 2012
CSC 165
13 September 2012
Quiz # 1 Solutions
Note: This le contains sample solutions to the quiz together with the marking scheme and comments
for each question. Please read the solutions and the marking schemes and comments carefully. Make sure
that you
Mathematical Expressionand Reasoning for Computer Science
COMPUTER S 165

Fall 2012
CSC 165
Quiz # 2 Solutions
20 September 2012
Note: This le contains sample solutions to the quiz together with the marking scheme and comments
for each question. Please read the solutions and the marking schemes and comments carefully. Make sure
that you
Mathematical Expressionand Reasoning for Computer Science
COMPUTER S 165

Fall 2012
CSC 165 H1 / L5101
Midterm Test
30 October 2012
Duration: 50 minutes
Aids Allowed: one singlesided handwritten 8.511 aid sheet
Student Number:
Last (Family) Name(s):
First (Given) Name(s):
Do not turn this page until you have received the signal to start
Mathematical Expressionand Reasoning for Computer Science
COMPUTER S 165

Fall 2012
CSC 165
Tutorial # 1
Fall 2012
You are given seven dierent programs A, C, E, G, I, K, M , each meant to carry out the same task, where programs
C, G, K, M are written in Python and programs A, E, I are written in Java.
1. Suppose that programs C, A, E, I,
Mathematical Expressionand Reasoning for Computer Science
COMPUTER S 165

Fall 2012
CSC 165 H1 / L5101
18 October 2012
Quiz # 5 Solutions
Note: This le contains sample solutions to the quiz together with the marking scheme and comments
for each question. Please read the solutions and the marking schemes and comments carefully. Make sure