1 / 6

Chapter 2 Review

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

celine
Download Presentation

Chapter 2 Review

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chapter 2 Review

  2. Test Test (61 pts) consist of: • Multiple Choice (22 questions, 22 pts) • True/False (13 questions, 13 pts) • Short answer (7 questions, 26 pts)

  3. 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

  4. 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

  5. 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

  6. Other • Critique assignment statements • Provide examples of code that would result in syntax, logical and run-time errors

More Related