CS102 Miterm review
Spring 2005
Since the midterm in on Thursday and classes were cancelled today
(tuesday), Here is a list of the sorts of things that you need to
know for the exam.
- Basic cs101 programming, selection, repitition, indefinate vs.
definite loops, types, variable declarations, functions, parameters,
return types etc. I will assume you know this material and am unlikely
to ask more than one question on it directly. (though most questions
will rely on you knowing this
- One dimentional arrays; know how to declare, create and use
arrays.
- Object oriented programming. Know about and how to:
- create objects
- declare classes
- write member functions
- call member funcations on object variables
- use the 'this' keyword.
- The composition/ has-a relationship
- The Association/knows-a relationship
- The dependancy/uses-a relationship
- diagramming classes and their relationships in UML
- Implementing the relationships in code
- Recognizing the relationships if I give you code that
implements the relationships.
- Pointers
- what is a pointer
- calling a member funcation on the object being pointed to.
- Declaring pointers.
- Initializing pointers
- Null pointers
- New and delete keywords.
- Createing objects on the heap vs. creating objects on the stack.
- Member functions that perform specific named duties
- constructors
- destructors
- Accessors
- Mutators
- Method overloading.
I've been skipping around a little in your book, but if you find your
notes inadequate you might find it helpful to read pages 596-640 and
742-766, the first half of chapter 9 also covers arrays for those of
you who are still weak on them.
I have office hours from 5-6 pm tomorrow for anyone who has questions.