Verityprep
Question Bank · Unit 1

AP® Computer Science A Using Objects and Methods Practice Questions

Work through AP Computer Science A practice questions on Using Objects and Methods, then check each answer against a worked solution.

Free · no sign-up Open questions need no account. Sign up or log in to open the rest.

Subtopic: Using Objects Clear filter

Questions 441–450 of 546
  1. 441
  2. 442
  3. 443
  4. 444
  5. 445
  6. 446
  7. 447
  8. 448
  9. 449
  10. 450

Question 441

Multiple choice Using Objects
Which statement correctly describes hits after the loop? int hits = 0; for…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 442

Multiple choice Using Objects
For this execution only, the three calls to Math.random() return 0.125, 0.875, and 0.375, in that order. What is printed? int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 443

Multiple choice Using Objects
Assume the two calls act as independent draws. Over many executions, which value of gap should be the most frequent?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 444

Multiple choice Using Objects
Which list contains all and only the possible final values of hits? double r =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 445

Multiple choice Using Objects
A bonus should be awarded with probability approximately 0.75. Which condition…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 446

Multiple choice Using Objects
Which range contains all and only the possible values…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 447

Multiple choice Using Objects
Which pair lists all and only the possible printed values? int bit…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 448

Multiple choice Using Objects
The code is intended to accept a reading only when it differs from target by at most 0.5. Which offered pair reading,…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 449

Multiple choice Using Objects
What is printed? int value = -5; double result =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 450

Multiple choice Using Objects
What is printed? double amount = 36; double root = Math.sqrt(amount);…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 441 of 546
Page 45 of 55