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 641–650 of 776
  1. 641
  2. 642
  3. 643
  4. 644
  5. 645
  6. 646
  7. 647
  8. 648
  9. 649
  10. 650

Question 641

Multiple choice Using Objects
The doubles measured and target are between -10.0 and 10.0. Which expression is true…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 642

Multiple choice Using Objects
What is printed? double x = -7.5; int first = (int) Math.abs(x) / 2;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 643

Multiple choice Using Objects
What is printed? int a = -9; int b = 4;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 644

Multiple choice Using Objects
A sensor should be accepted when it is within 2 units of 4 but more than 4 units from -1. Which offered int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 645

Multiple choice Using Objects
What is printed? double a = Math.pow(-3, 2);…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 646

Multiple choice Using Objects
The int n is between 0 and 12 inclusive. Which list contains all and only the values of n…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 647

Multiple choice Using Objects
What is printed? double a = Math.pow(2, -3);…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 648

Multiple choice Using Objects
What is printed? int x = -11; double root =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 649

Multiple choice Using Objects
What is printed? int a = 2 * (int) Math.sqrt(8); int b =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 650

Multiple choice Using Objects
What is printed? double base = 2.5; int a = (int) Math.pow(base,…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 641 of 776
Page 65 of 78