CS 101 Notes: 11/4/2010 Exam next Tuesday 22 questions 20 multiple choice questions trace code if, while and for loops x 0 5 6 11 12 y 5 output: 5 11 relational operators (<, <=, >, >= , == , !=) boolean operators (&&, || , !) if ((x >= 1 ) && (x <= 10)) if (!((x >= 1 ) && (x <= 10))) X Y X && Y X || Y !X ----------------------------- T T T T F T F F T F F T F T T F F F F T boolean found = false; while (!found) Picture manipulation - encoding details - modification algorithms 2 write method modification algorithms method "signature": public static Picture modifyPicture parameters a 0 1 2 3 4 5 6 7 b 10 9 8 7 6 5 4 3 z 0 0 1 3 10 16 21 25 i 0 1 2 j 0 1 2 3 4 5 0 1 2 3 4 5 0 1 2 Output: 0 0 0 0 0 0 1 2