Computer Science 261
Exam 1 Review
The first hour exam will be given on Friday, Sept. 21, and will cover
a review of C++ and an introduction to Java contained in the first
five chapters of Neimeyer and Knudsen. You should review course notes
(in particular definitions and examples), and chapters 1 - 5 of
Neimeyer and Knudsen with emphasis on chapters 4 and 5 (skipping
exceptions for now - we will cover that later, along with the java
archiver).
The exam will consist of definitions covered in the book and in
lectures, together with some shorter questions about Java and at
least one complete Java program. In particular, you should be
comfortable with the following (cavaet: the following should be taken
only as a guide. You are responsible for the material in readings,
lectures, and homework. If, however, it appears that I've left
something important out of the following, please do let me know -
it's probably a mistake on my part and may still appear in the
exam)
- Be able to give the basic definitions: Object-oriented,
information hiding, encapsulation, objects, methods, inheritance,
polymorphism, public vs private, etc. I will not ask you what
static means until the next exam.
- Be able to distinguish (in writing) between functional
programming and object-oriented programming.
- Be able to use the basic elements of Java: data types and
variables, basic input / output (including the use of the argument
list), basic control structures.
- Be able to write a complete Java program
- Be able to write a class definition in Java. I may also ask
you to write parts of it in C++, but this is the only non-Java C++
that will appear in the exam. The current exercise will be useful
in reviewing for this area.
Any questions? Please ask!