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 841–850 of 2,811
  1. 841
  2. 842
  3. 843
  4. 844
  5. 845
  6. 846
  7. 847
  8. 848
  9. 849
  10. 850

Question 841

Multiple choice Unit 2: Selection and Iteration
Assume that the variable declarations have been made. int a = 7, b = 15, c = -6; Which will…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 842

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

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 843

Multiple choice Unit 2: Selection and Iteration
At a certain high school students receive letter grades based on the following scale. Numeric Score Letter Grade 93 or above A From 84 to 92 inclusive B From 75…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 844

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 845

Multiple choice Unit 2: Selection and Iteration
Consider the following code segment. int num1 = 9; int num2 = 5; if (num1 > num2) { System.out.print((num1 + num2) %…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 846

Multiple choice Unit 2: Selection and Iteration
Consider the following code segment. int value = initValue; if (value > 10) if (value > 15) value = 0; else value =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 847

Multiple choice Unit 2: Selection and Iteration
Assume that a, b, and c have been declared and initialized with int values. The expression !(a > b || b…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 848

Multiple choice Unit 2: Selection and Iteration
A high school class places students in a course based on their average from a previous course. Students that have an average 92 or above are placed in an honors…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 849

Multiple choice Unit 2: Selection and Iteration
Assume that x, y, and z have been declared as follows: boolean x = true; boolean…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 850

Multiple choice Unit 2: Selection and Iteration
Consider the following code segment. int amount = initValue; if (amount…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 841 of 2,811
Page 85 of 282