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.

Questions 671–680 of 776
  1. 671
  2. 672
  3. 673
  4. 674
  5. 675
  6. 676
  7. 677
  8. 678
  9. 679
  10. 680

Question 671

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 672

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 673

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 674

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 675

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 676

Multiple choice Using Objects
A circle has positive area, with area = pi times radius squared. Which expression…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 677

Multiple choice Using Objects
Which list contains all and only the possible values of distance? int price…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 678

Multiple choice Using Objects
A point should be accepted only if its actual distance from the origin is at most 4. The code below is incorrect. Which offered pair x, y is accepted…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 679

Multiple choice Using Objects
Each coordinate can be any integer from -2 through 2, giving 25 possible ordered pairs (x, y). For how many of these pairs is inside true?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 680

Multiple choice Using Objects
What is printed? String label = "orbit";…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 671 of 776
Page 68 of 78