Verityprep
Question Bank

AP® Computer Science A Multiple Choice Questions

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

Question 551

Multiple choice Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 2,811
Page 56 of 282