Midterm Study Guide
- Chapters: 1,2, 3 & 7 and 8 and part of 9
- Read both Alice and Java code.
- Be able to tell what it will do from looking at the code
- Be able to tell which order each step happens, including flow through
methods and functions
- Be able to tell the value of a variable at each step.
- Create a new Java or Alice program.
- Say something on the screen in Alice and Java.
- Create a variable (both parameter and method types) in Alice and Java.
- Know what data type of variable you want to create in both Alice and
Java.
- In Alice the possible choices include Number, String, Boolean.
- In Java, the choices include: (I struck out type you do not need to know
for the quiz.)
- note that String is really a class holding char, and not a primitive
type like the ones above
- If you were given the following values, what data type would you create
to hold the value: 0.5; 20,000,000,000; 0, 333.5, abc, 10
- Change a variable's contents in Alice and Java:
- Create (define) a method/fuction in Java and Alice (including methods that
take in parameters and return something)
- Call a method/function, passing parameters and setting the return value
in Alice or Java
- Read from the screen using Scanner
- Use the Math class
- Use the String class
- Create and set and print boolean variables
- Know how to swap the value of two variables
- Know how to put these tools together to solve problems and code stories.
Here are your Java Tools
Midterm Study Exercises
Page you will have available during the midterm