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 831–840 of 2,811
  1. 831
  2. 832
  3. 833
  4. 834
  5. 835
  6. 836
  7. 837
  8. 838
  9. 839
  10. 840

Question 831

Multiple choice Unit 2: Selection and Iteration
A resort wants to recommend activities for its guests, based on the temperature (degrees F) as follows: 76° and above go swimming 61°–75° go hiking 46°–60° go…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 832

Multiple choice Unit 2: Selection and Iteration
A resort wants to recommend activities for its guests, based on the temperature (degrees F) as follows: 76° and above go swimming 61°–75° go hiking 46°–60° go…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 833

Multiple choice Unit 2: Selection and Iteration
Consider the following code segment. for (int h = 5; h >= 0; h = h - 2) { for (int k = 0; k < 3; k++) { if ((h…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 834

Multiple choice Unit 2: Selection and Iteration
Consider the following code segment. int number = Integer.MAX_VALUE; while (number > 0) { number = number / 2; } for…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 835

Multiple choice Unit 2: Selection and Iteration
Consider the code segment. if (value == 1) count += 1; else if (value == 2) count…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 836

Multiple choice Unit 2: Selection and Iteration
A bank will approve a loan for any customer who fulfills one or more of the following requirements: Has a credit score ≥ 640 Has a cosigner for the loan Has a…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 837

Multiple choice Unit 2: Selection and Iteration
Consider the following code segment. int value = 33; boolean calculate = true; while (value > 5 || calculate) {…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 838

Multiple choice Unit 2: Selection and Iteration
Consider the following incomplete method. public boolean validation(int x, int y) { /* missing code */ } The following table shows several examples of the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 839

Multiple choice Unit 2: Selection and Iteration
Consider the following method. public String calculate(int num1, int num2) { if (num1 >= 0 && num2 >= 0) return "Numbers are valid"; return "Numbers are not…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 840

Multiple choice Unit 2: Selection and Iteration
Assume truth1 and truth2 are boolean variables that have been properly declared and initialized. Consider…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 831 of 2,811
Page 84 of 282