The final exam for previous CS 161 Java classes consisted of
approximately 50 questions on various aspects of programming and Java.
I intend to make the final for this session similar, but the questions
for this session will be derived more closely from the material
presented in the textbook and class.
Things to note:
- My exams are generally true/false, short answer, multiple choice,
or you are asked to write some code fragments.
-
Code fragments should be just that: I'm looking for your understanding
of simple coding constructs, not for a complete program. I'm not too
particular that the code you write would pass the compiler without
error, though I do expect your code fragments to be reasonably correct.
- Read the questions carefully: case can be significant. Read the
whole question and all multiple choice answers. There is one response
that I think is most correct.
- If you think there is more than one right answer (or no correct
answer) then write a note explaining your thinking.
- Hint: Do the whole exam before giving up on a question: sometimes
the answer will be found in later or previous questions.
- When in doubt, guess. I don't penalize for wrong answers but I
give no credit for blanks. Be sure every question has a response.
- I create several versions of the final exam, all with the same
questions but in different random order. Please spend your time
preparing for the final rather than trying to figure out ways to
out-smart me.
Here is a link to a copy of a set of CS161 exam questions and answers
from last Spring.
http://cs.gmu.edu/~jdoughty/cs161/Exam5.html
- Textbook
- Chapter 1 - Introduction and a Taste of Java
- Chapter 2 - Primitive Types and Strings
- Chapter 3 - Flow of Control
- Chapter 4 - Classes, Object, and Methods
- Chapter 5 - Programming with Classes and Methods
- Chapter 6 - Inheritance - through the section "Constructors in
Derived Classes" that ends on page 301 (you may skip the remainder of
Chapter 6)
- Chapter 7 - Event Driven Programming Using the AWT
- Chapter 8.1 - Basic Exception Handling
- Chapter 9 - Streams and File I/O - Sections 9.1 and 9.2
- Class Notes