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 781–790 of 2,811
  1. 781
  2. 782
  3. 783
  4. 784
  5. 785
  6. 786
  7. 787
  8. 788
  9. 789
  10. 790

Question 781

Multiple choice Unit 2: Selection and Iteration
A student is trying to determine if the following two expressions are equivalent. A. x && (!x ||…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 782

Multiple choice Unit 2: Selection and Iteration
Given a, b, and c are properly initialized boolean values, what values…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 783

Multiple choice Unit 2: Selection and Iteration
In order to ride the zip line, you need to be at least 12 years old and weigh at least 75 pounds, but no more than 300 pounds. Which of the following code…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 784

Multiple choice Unit 2: Selection and Iteration
Given the following: if (x > y) { y *= 2; } else if (y > x) { x *= 2; } if (x > y) { y *= 2; } if (y…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 785

Multiple choice Unit 2: Selection and Iteration
Assuming weekday and holiday are properly initialized booleans, which…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 786

Multiple choice Unit 2: Selection and Iteration
What values for x and y will cause the program to execute the /* missing code */? if…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 787

Multiple choice Unit 2: Selection and Iteration
Christine will go to the beach if it's not raining and if it's between 75°F and 95°F.…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 788

Multiple choice Unit 2: Selection and Iteration
Consider the following output. 1 1 1 1 1 2 2 2 2 3 3 3 4 4 5…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 789

Multiple choice Unit 2: Selection and Iteration
How many times will the loop execute? int i = 0;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 790

Multiple choice Unit 2: Selection and Iteration
Vehicles are classified based on their total interior volume. The classify method is intended to return a vehicle classification String value based on total…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 781 of 2,811
Page 79 of 282