CMPT 126 Harbour Centre

Old tests details




Last update: December 4, 2010

Quiz during Lab #1. Week 5 Tuesday October 5.

It took place during the first hour of your own lab time, in the usual lab room.

  • Topics coverage:
    • Topics covered in the Lab exercises week #2 and Lab week #3 (Selected solutions to lab exercises are posted in the Lab exercises section).
    • Corresponding topics and examples seen in class, until and including week #4.
    • Corresponding notes: until and including notes #7.

  • Focus on:
    • Classes with main and possibly other static methods
    • Decomposition of a solution in methods
    • Methods: passage of parameteres and returning of (single) values
    • For loops
    • Minimal usage of if statements
    • Using (non-static and static) methods from Classes in the Java standard API: String, Scanner, Math, Random, Date
    • String manipulations
    • String creation vs. printing of strings

  • Quiz style:
    • Done during lab time, using the computers, individually.
    • Focus on exercises
    • You will be allowed to access the API documentation of the classes String, Scanner, Math, Random and Date.
    • You are allowed to bring a crib sheet, written in only one side of a regular size piece of paper, normal font, handwritten or typed. It may include any notes you want to include. It should include your name and student number. You will submit it and it will be returned to you.

Quiz during Class time #2. Week 7 Tuesday October 19.

It took place during the usual class time, paper and pen/cil.

  • Topics coverage:
    • All the topics in quiz #1
    • Topics covered in the Lab exercises week #2 to Lab exercises week #5. (Selected solutions to lab exercises are posted in the Lab exercises section).
    • Corresponding topics and examples seen in class, until and including week #6.
    • Corresponding notes: until and including notes #13B.

  • Focus on:
    • Focus of quiz #1

      AND ALSO
    • aliases
    • comparison of strings
    • while loops, do while loops, if statements, for loops
    • while loops with two conditions
    • avoinding breaks
    • defining classes of objects: instance data, constructors, getter and setter methods, toString methods.
    • driver or tester classes: creating new objects of defined classes and invoking methods through them
    • UML class diagrams - at most a couple classes and only the "uses" relation.

  • Quiz style:
    • Done during the usual class time, paper and pen/cil .
    • Focus on some conceptual questions, understanding of code AND ALSO coding exercises.
    • You are allowed to bring a crib sheet, written in up to 2 sides of a regular size piece of paper, normal font, handwritten or typed. It may include any notes you may want to include. It should include your name and student number. You will submit the crib sheet and it will be returned to you.
    • if you are interested in getting your previous quiz crib sheet you can get it before the quiz starts (please ask for it). In that case you may bring an additional one side crib sheet.

MIDTERM EXAM Week 10, Tuesday November 9

It took place during the usual class time, paper and pen/cil.

  • Topics coverage:
    • All the topics in quiz #1 AND quiz#2
    • Topics covered in the Lab exercises up to week #7 and Project #1.
    • Corresponding topics and examples seen in class, until and including week #9, Monday class. See in particular the Examples section.
    • Corresponding notes: until and including notes #18B.

  • Focus on:
    • Focus of quiz #1 AND quiz#2

      AND ALSO
    • arrays
    • arrays of objects
    • multidimensional arrays
    • parameter passing: primitive types and objects
    • returning more than one value from a method (HashMap not tested)
    • encapsulation, public/private variables and methods
    • static/non static variables and methods
    • defining and using classes where the instance variables are arrays of objects and or multidimensional arrays

  • Midterm style:
    • Done during the usual class time, paper and pen/cil .
    • Focus on some conceptual questions, understanding of code AND ALSO coding exercises.
    • You are allowed to bring a crib sheet, written in up to 3 (THREE) sides of a regular size piece of paper, normal font, handwritten or typed. It may include any notes you may want to include. It should include your name and student number. You will submit the crib sheet and it will be returned to you.
    • if you did not pick up your previous quiz crib sheet you can get it before the quiz starts (please ask for it). In that case you may bring an additional one side crib sheet.

Quiz #3, it was a take home version

  • Topics coverage:
    • Recursion and Array lists.
    • Corresponding posted lecture notes: 19 to 24
    • Exercises seen in class (posted in the Examples section)
    • Solutions to lab exercises (corresponding to lab week #9 and lab week #10)


© Diana Cukierman. Page maintained by Diana Cukierman.