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 791–800 of 2,811
  1. 791
  2. 792
  3. 793
  4. 794
  5. 795
  6. 796
  7. 797
  8. 798
  9. 799
  10. 800

Question 791

Multiple choice Unit 2: Selection and Iteration
Which of the following best describes the value of…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 792

Multiple choice Unit 2: Selection and Iteration
Consider the following code segment. int val = 48; int div = 6; while ((val % 2 == 0) && div > 0) { if (val %…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 793

Multiple choice Unit 2: Selection and Iteration
Consider the following code segment. int x = / * some integer value * /; int y = / * some integer value * /; if (x > y && x % 2 == 0) {…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 794

Multiple choice Unit 2: Selection and Iteration
Consider the following code segment. Assume that x and y are properly declared and initialized integer variables. int z = 0;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 795

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

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 796

Multiple choice Unit 2: Selection and Iteration
Consider the following code segment. Assume that value is a properly declared and initialized integer variable. if (value < 7) { value + = value;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 797

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

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 798

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 799

Multiple choice Unit 2: Selection and Iteration
Consider the following code segment. int t = 0; for (int v = 1;v < 20;/ * missing increment * / ) { t = t + v; } Which of the following…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 800

Multiple choice Unit 2: Selection and Iteration
Consider the following code segment. int x = 102; int y = 5; int c = 0; while (x - y >=…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 791 of 2,811
Page 80 of 282