Exam 2 Topics
CS141: Introduction to Programming, Fall 2013


General Comments and Recommendations

Chapter 5: Methods

Vocabulary

method (function, member function, procedure)
black box
modularization
stepwise refinement (revisited)
reusability
return type, return value
(formal) parameter variable
argument (actual parameter)
parameter passing
variable scope: local, global
tracing code
stub
recursive methods

Common expressions are:

"call a method" or "call a function"
"return a value"
"pass a value as a parameter"

Topics

Chapter 6: Arrays and ArrayLists

Vocabulary

array (1D, 2D, multi-dimensional)
Declaring an array
Initializing an array
Enhanced loop
Arrays class
Pass by value
Pass by reference
ArrayList
Creating and declaring an ArrayList
Diamond syntax
Auto-boxing

Topics

Chapter 7: Input/Output and Exception Handling

You are required to know the vocabulary but you will not be asked to write code related to this topic.

Vocabulary

File
Ascii (text) file vs binary file
Opening a file
Closing a file
White space

Exception
Throwing an Exception
Catching an Exception
try-catch
Delimiter

Chapter 8: Objects and Classes

Vocabulary

Object-oriented programming
Encapsulation
Public interface
Private implementation
Class
Object (instance of class)
Member (instance) variable
Instance method
Constructor
The keyword: new
Object reference
Null reference

Mutator method (setter)
Accessor method (getter)
toString method
Sending a message
Overloading
Class (static) method
Class (static) variables
Modifier (public, private)
this reference
Unit testing

Topics