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 691–700 of 2,811
  1. 691
  2. 692
  3. 693
  4. 694
  5. 695
  6. 696
  7. 697
  8. 698
  9. 699
  10. 700

Question 691

Multiple choice Unit 2: Selection and Iteration
Consider the following code segment. for (int outer = 1; outer <= 6; outer++) { for (int inner = outer; inner <= 6; inner++) { if…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 692

Multiple choice Unit 2: Selection and Iteration
Assume that x and y are boolean variables and have been properly initialized. (x && y) &&…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 693

Multiple choice Unit 2: Selection and Iteration
Consider the following code segment. int count = 0; for (int x = 0; x < 4; x++) { for (int y = x; y < 4;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 694

Multiple choice Unit 2: Selection and Iteration
Consider the following code segment. int value = 15; while (value < 28) {…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 695

Multiple choice Unit 2: Selection and Iteration
A teacher put three bonus questions on a test and awarded 5 extra points to anyone who answered all three bonus questions correctly and no extra points…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 696

Multiple choice Unit 2: Selection and Iteration
int k = a random number such that 1 ≤ k ≤ n ; for (int p = 2; p <= k; p++) for (int r = 1; r < k;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 697

Multiple choice Unit 2: Selection and Iteration
Assume that x and y are boolean variables and have been properly initialized. (x &&…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 698

Multiple choice Unit 2: Selection and Iteration
Consider the following code segment. int k = 0; while (k < 10) { System.out.print((k % 3) + " ");…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 699

Multiple choice Unit 2: Selection and Iteration
Consider the following code segment. int x = /* some integer value */ ; int y = /* some integer value */ ; boolean result = (x < y); result = ( (x >=…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 700

Multiple choice Unit 2: Selection and Iteration
Consider the following code segment. for (int outer = 0; outer < n; outer++) { for (int inner = 0; inner <= outer; inner++) {…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 691 of 2,811
Page 70 of 282