APCS Review Project
Your assignment is to make a study guide for all the
information that we’ve covered so far.
You can make fold over notes, or you can make a study java program
(extra credit).
Topics to cover (grouped by the lesson they appear in the ICT
curriculum)
Lesson 1:
- What’s
the difference between a compile-time and run-time error?
Lesson 2:
- What’s
the difference between a class and an object?
- When
do I use new?
- What
is the main purpose of the constructor?
- When
designing a class, nouns become____?
- When
designing a class, verbs become____?
Lesson 3:
- What
types of data are stored in the following primitives:
- int
- boolean
- char
- double
- String
- What
are the rules for naming identifiers in Java?
- What’s
the order of precedence for the math operators?
- What’s
the modulus operator (%)for?
- What’s
the difference if you divide by ints
or doubles?
- What
do the following assignment operators do?
- What’s
the difference between ++a
and a++
Lesson 4:
- What
are getters and setters?
- What’s
a method signature?
- What
does void mean?
- When
do I use return?
- What
is meant by scope?
Lesson 5:
- What
is overloading a method?
Lesson 6
- What
does final mean?
- What
does static mean?
- Write
all fields and methods for the Random class. Explain what each is for:
- Write
all fields and methods for the Math class. Explain what each is for:
Lesson 7
- How do
you use the scanner class? How does it read in different types of
data?
- How do
you use printf to
format you output?
Lesson 8
- When
do you use a break
statement?
- What’s
the difference between &&
and ||?
Lesson 9
- What
is the basic principle of recursion?
Lesson 10
- Write
down all the methods of the String
class and explain what they do.
- What
does null mean?
- What’s
the difference between == and
.equals()? When do I use which?
- Explain
immutability of Strings.
Lesson 11
- When
should I use implements
and when do I use extends?
- What’s
the difference between inheritance and an interface?
Lesson 12
- When
should I use a for loop? When should I use a while?
- Give
an example of using a for loop to traverse a:
Lesson 15
- Write
down all the methods of the ArrayList
class and explain what they do.
- How do
you declare an ArrayList using the <>’s
Lesson 16
- Give
an example of using a for
loop to traverse an array.
- Give
an example of using a for
each loop to traverse an array.
- What’s
are the differences between an array and an ArrayList?
Diagrams:
- Draw
an example of a method. Label and
explain the following (Lesson 2 & 4):
- Modifiers
- Return
type
- Method
name
- Parameters
- Method
body
- Make a
diagram to explain the scope test example (Lesson 4, Section E #5)
- Draw
an example of a class definition.
Label the following (Lesson2 & 5):
- Constructor
- Instance
variables (Attributes)
- Methods
- Make a
drawing of a recursive method (Lesson 9).
Label:
- The
recursive call
- The
base case
Multiple Choice Questions:
- Create
3 of your own multiple choice question.
- Each
question should have 5 possible answers
- Answers
should be distracting
- Please
write an answer key explaining which answer is correct and give an
explanation.