Verityprep
Question Bank

AP® Computer Science A Practice Questions

Work through AP Computer Science A practice questions unit by unit, 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 3,140
  1. 671
  2. 672
  3. 673
  4. 674
  5. 675
  6. 676
  7. 677
  8. 678
  9. 679
  10. 680

Question 671

Multiple choice Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 3,140
Page 68 of 314