Things you should know for the Spring 2008 CS211 Midterm.
Last updated 10/01/2008 --- Check back for updates!
Basic Unix commands
- cp SOURCE TARGET
copy a file from source to target
- cd
change directories
- ls
short listing of directory contents
- ls –l
display a directory listing giving details about directories and files
- mkdir DIRECTORY create the
specified directory
- rm FILE
remove file or files
- man COMMAND
display the man (manual) page about the command
- mv SOURCE TARGET
move the source file to the target file
- pwd
return the current working directory name
Basic Java
- Applets versus Applications
- Know the differences between an applet and an application
- Know what the paint method of an applet does, and given
appropriate Javadocs, be able to write the code to draw a given screen
- Java command line interface (CLI)
- Know how to compile a program on the command line
- Know how to run a program on the command line
- Know how to run a class in a package using the command
line
- Java compiling
- Know how Java Virtual machine works with java byte code
- Be able to understand and use
- if statements
- Including boolean operators
- Know what short-circuiting is
- Know how to compare primititve types, Strings and other
objects
- for loops
- while loops
- new for loop ("foreach") -- not for midterm -- know for
final though!
- switch statements
- know the difference between a statement and an expression
- Basic math
- Know how to do basic math using Java
- Know how to use the Math class to do more advanced math
in Java (Javadocs will be given)
- Know how to convert Number bases using Java
- Know how to convert to/from binary/decimal/hexadecimal
(not using Java!)
- Classes and Objects
- What is the difference between a Class and an Object
- Constructors - Know what a constructor is, what it does,
and how it gets called
- Know
the difference between primitive data type initialization and complex
data type instantiation. Know why we use object instantiation?
- Know how to access methods and attributes of a class
using the dot operator
- Know how to define a class in a package
- Know how parameters get passed to methods in Java. Does
changing a parameter effect the value after the method? Does it depend
on the type of parameter?
- Know how to implement the toString method to print an object to the screen.
- Wrapper classes
- Know what wrapper classes are
- Know how to convert between primitives and wrappers
- Know what autoboxing and autounboxing are and how to use
in conversions
- Visability Modifiers
- know how these modifiers support encapsulation and why
encapsulation is needed
- be able to explain accessors (getters) and modifiers
(setters) and why we use them
- public, private, protected, no modifier and how they
effect methods and class variables
- static
- what is a static method, what is a static variable? What do these
mean.. if I give you an example with static methods/variables being
called can you tell me which is a error? what the values are?
- Final modifier
- Know how to use the final modifier to create a constant.
What happens if you try to change the value of a constant?
- Text-based Input/Output (I/O)
- Know how to write information to the screen
- Know how to read user input from the keyboard using Scanner (numbers, Strings, and letters)
- Event driven programming
- Know how to create an use events in Java
- Create components
- Add listeners
- Handle events generated by the components
- GUI Programming
- Know what a layout manager is
- Know how to use BoxLayout or FlowLayout (Javadocs given if needed)