APS105 Course Notes - Errata

Last updated on September 29, 2000

This document lists known errors in the notes (other than simple typographic errors). If you find other errors, please submit a report to jcarter@ecf.utoronto.ca.

New Additions to This List

p. 35 Exercise 2.2 Question 1(j) Replace * by /

p. 41 Exercise 2.5 Question 2(d) Should be (int)('A' + 'f' - 'D' - 'b')

p. 69 Question 1(c) Replace and by &&

p. 86 Question 2(b) First line should be product = 1;

p. 102 Near top of page Delete second bullet (starting with "Given that f is ...")

p. 107 Question 4 Ignore this. It is a mess.

p. 190 Arrows between circled 7 and circled 12 should be switched

p. 222 Question 1(d) "A pair of siblings" should be part (e). Other parts should all move down by one

p. 226 This page was omitted from printing. It will be given out in class shortly.

p. 250 Section 1.2 Question 1 Add a comma at the end of the first line

p. 251 Section 1.10 Question 8(a) should be x: 0.093y: -0.003

p. 252 Section 2.2 Question 3 Answer to part a) was omitted. It is i 4. Other answers should all move down by one

p. 252 Section 2.3 Question 1(e) Should be 12 1 6

p. 252 Section 2.3 Question 2(a) Should be y = ++x - z++;



Items on List Previously

p. 36 The paragraph on mixing increment and decrement operators with other operators is wrong. A correction should have been supplied with the notes

p. 44 Example 7 outValue should be declared to be of type long

p. 57 Example 3 Apostrophes (in all three parts) should be replaced by double quotes

p. 69 Question 1(c) Replace = with ==

P. 79 Question 2 Stdin is misspelled

p. 81 Example 2 The println statement lacks a closing parenthesis

p. 148 Question 2(a) and 2(c) In both parts, a left square bracket has been omitted

p. 204 Example 2 The method should be called addAtFront

p. 205 Line 2 The statement should be myList.addAtFront(7);

p. 209 The value 28 should be in the box labelled item

p. 212 Example 2 In the if statement, replace head by top

p. 213 Line 6 Replace tail by rear

p. 250 Section 1.4 Question 1(c) Answer should be -0.002