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 891–900 of 2,811
  1. 891
  2. 892
  3. 893
  4. 894
  5. 895
  6. 896
  7. 897
  8. 898
  9. 899
  10. 900

Question 891

Multiple choice Unit 2: Selection and Iteration
Consider the following Java method, conditionTest, which takes two integer arguments, num1 and num2, and prints a letter based on their values: public static…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 892

Multiple choice Unit 2: Selection and Iteration
Consider the following code segment: for (int i = 0; i = 1; j--)…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 893

Multiple choice Unit 2: Selection and Iteration
Consider the following Boolean expression where a and b are…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 894

Multiple choice Unit 2: Selection and Iteration
Consider the following code segment: int p = 5; int q = 2; int sum = 0; while (p <=…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 895

Multiple choice Unit 2: Selection and Iteration
Consider the following method: public static void conditionTest(int num1, int num2) { if ((num1 > 0) && (num2 > 0)) { if (num1 > num2) System.out.println("A");…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 896

Multiple choice Unit 2: Selection and Iteration
Consider the following two code blocks where count and n are both integer values: // Code block I for (count = 0; count…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 897

Multiple choice Unit 2: Selection and Iteration
Consider the following code segment: int a = 8, b = 3, temp = 0; for (int i = 1; i < 6; i++) {…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 898

Multiple choice Unit 2: Selection and Iteration
Given the Boolean expression: (x == y && !(x == y)) || (x != y && !(x…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 899

Multiple choice Unit 2: Selection and Iteration
Consider the following code segment. Which of the following…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 900

Multiple choice Unit 2: Selection and Iteration
Consider the following code segment: What is…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 891 of 2,811
Page 90 of 282