60 likes | 194 Views
Chapter 2 Review. Test. Test (61 pts) consist of: Multiple Choice (22 questions, 22 pts) True/False (13 questions, 13 pts) Short answer (7 questions, 26 pts). You need to know the following:. Difference between print and println statements Behavior of int and double in print statements
E N D
Test Test (61 pts) consist of: • Multiple Choice (22 questions, 22 pts) • True/False (13 questions, 13 pts) • Short answer (7 questions, 26 pts)
You need to know the following: • Difference between print and println statements • Behavior of int and double in print statements • Operations with int and double • How strings concatenate • Proper commenting • Using and interpreting escape sequences • Properties of int, double, char, boolean
You need to know the following: • Reason for wrapper classes • Arithmetic operations with int and double • Precedence of operations • Conversions and casting – when to use and how to use, narrowing vs. widening conversions • Library to import for Random class and Scanner class • Know AP methods and how to use them for String, Math, Random classes • Explain what simple code fragments will do, predict output of fragment • Static (class) methods
Writing code fragments to • do integer calculations • convert to double • print formatted output. • calculate the distance between two points • calculate values of exponential functions • manipulate a string
Other • Critique assignment statements • Provide examples of code that would result in syntax, logical and run-time errors