Review Topic List
posted by: Ms. Martin
24 January 2010
One Comment
The test will be just like quizzes you’ve seen — a few expressions problems, a couple of mysteries, some programming questions. I will include arrays only in expressions and mysteries. I will also have a couple of short-answer questions designed to see how good you are at explaining programming concepts.
You should expect to have at least one of the programming questions ask you to define a class. You should also expect to have to write String methods.
This is a reasonably thorough list of what we have studied since the beginning of the year. It’s a lot! But don’t worry, I’ve seen you going, and I know a lot of it is second nature. Use this list to jog your memory and recognize things you might want to look over.
Structure of programs
- What is main?
- What are curly braces for?
- What are semi-colons for?
Console Output
- System.out.println()
- System.out.print()
- What is System? What are println/print? What kinds of parameters do they accept?
Comments
- When are comments appropriate?
- What is comment syntax?
- More recently: what does ‘postcondition’ mean?
Coding conventions
- What are coding conventions?
- Why are coding conventions important?
- In our class convention, what are the rules for naming classes? Methods? Variables? Constants?
Methods
- What do the different parts of a method header mean?
- What is the difference between static and non-static methods?
- What is the difference between public and private methods?
Flow Control
- What happens when one method calls another?
- In what order are statements executed?
Variables
- What is the syntax for declaring a variable?
Types
- What are Java’s primitive types?
- What are the differences between int and double?
- What is an object type?
Binary
- What is binary?
- How are numbers converted between decimal and binary?
Expressions
- Which operators exist in Java? What types can they operate on?
- What are Java’s order of operation rules?
Repetition
- What is a definite loop? An indefinite loop?
- What is the syntax for a for loop? A while loop?
- What are the different parts of the for loop header?
- What type must loop tests evaluate to?
- How do you choose between for a while loops?
- What is the process for using a desired output pattern to determine loop bounds and structure?
- What are nested loops?
Constants
- What is the difference between a constant and a variable?
- Where would you use one rather than the other?
- What is the syntax for initializing a constant?
Scope
- What is scope?
- What is the scope of a parameter passed into a method?
Strings
- What are the valid indexes for a given string?
- How do you get the length for a given string?
- How do you get a portion of a string?
- How do you get a particular character from a string?
- How do you loop over a string?
- How do I compare two strings for equality? Case-insensitively?
Math class
- How do you get access to the Math class?
- What are some useful methods from the Math class?
Returns
- Can you have statements directly after a return statement?
- Where does a returned value go?
- Why is returning values useful?
Scanner
- What is a Scanner object?
- What can a Scanner be built on?
- What are the Scanner methods?
- How do I keep reading content as long as there is still content to be read?
Conditionals
- What is the boolean type?
- How can boolean expressions be joined together into compound expressions?
- How are boolean expressions negated?
- What are the differences between using if/else or if/if or if/else if/else or if/else if?
Files
- How do you open a file for reading?
Classes
- What is a class?
- What is an instance field?
- What is a constructor? What is the syntax for creating one? When will it be called?
- What are instance methods?
- What is object-oriented programming useful for?
Random
- What is the syntax for generating a random number?
- What does the parameter to nextInt represent?
- Where do Java random numbers come from?
Arrays
- What is an array?
- Why are arrays useful?
- What is the syntax for initializing an array?
- What are the valid indexes for an array of a particular length?
- How do you access a value at a particular index?
- How do you loop over all values of an array?




