Verityprep
Question Bank · Unit 1

AP® Computer Science A Using Objects and Methods Multiple Choice Questions

Work through AP Computer Science A multiple-choice 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 551–560 of 681
  1. 551
  2. 552
  3. 553
  4. 554
  5. 555
  6. 556
  7. 557
  8. 558
  9. 559
  10. 560

Question 551

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 552

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 553

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 554

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 555

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 556

Multiple choice Using Objects
The ints dx and dy are each between -10 and 10. A robot must store its straight-line distance from its starting point as a double. The distance formula is…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 557

Multiple choice Using Objects
Each declaration is considered independently.…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 558

Multiple choice Using Objects
What is printed? Math.PI is approximately 3.14159. int a = (int)…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 559

Multiple choice Using Objects
The int diameter is from 1 through 20 inclusive. A circle has circumference pi times diameter.…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 560

Multiple choice Using Objects
After the declaration below, each offered statement is considered…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 551 of 681
Page 56 of 69