Exam 3 is Wednesday of week 8. It will cover:
Notes: Week04_Notes01 – Week06_Notes02.
Labs: labs 5 and 6 – both are about writing and calling methods
The location a variable is declared determines where it is valid.
Variable scopes are: global, parameter, local
Given a java class with a variable declaration, be able to say whether the variable’s scope is global, parameter, or local.
What does it mean to call a method
Where does the value returned from a method go.
What kind of error does the compiler give if you try to call a method using the correct name, but incorrect parameters.
pow(), abs(), random(), round()
Know what these methods do and how to use them to get a result.
How are they different from one another?
Given a literal value, be able to identify which primitive type or types this literal could be assigned to.
How is integer division different from floating point division.
Given an expression involving a division operator and two operands, be able to determine whether the division is integer or floating point division and calculate the correct result.
Know the truth table.
Given an expression with arithmetic operators, relational operators, and logical operators, be able to calculate the correct result.
Know what the ++ and += operators do.