Verityprep
Question Bank

AP® Computer Science A Practice Questions

Work through AP Computer Science A practice 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 981–990 of 3,140
  1. 981
  2. 982
  3. 983
  4. 984
  5. 985
  6. 986
  7. 987
  8. 988
  9. 989
  10. 990

Question 981

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 982

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 983

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 984

Multiple choice Unit 2: Selection and Iteration
Which segment of code will correctly print the two Strings name1 and name2 in alphabetical order? if (name1 < name2) System.out.println(name1 + " " + name2); I.…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 985

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

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 986

Multiple choice Unit 2: Selection and Iteration
Consider the following code segment. boolean b1 = true; boolean b2 = true; int x = 7; while (b1 || b2) { if (x > 4) {…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 987

Multiple choice Unit 2: Selection and Iteration
Which of the following three code segments will produce the same output? I. int i = 1; while (i < 12) { System.out.print(i + " "); i *= 2; } II. for…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 988

Multiple choice Unit 2: Selection and Iteration
Consider the following code segment. double count = 6.0; for (int num = 0; num < 5; num++) { if (count != 0 && num /…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 989

Multiple choice Unit 2: Selection and Iteration
Consider the following code segment. double tabulate = 100.0; int repeat = 1; while (tabulate > 20) { tabulate = tabulate…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 990

Multiple choice Unit 2: Selection and Iteration
If a, b, and c are integers, which of the following conditions is sufficient…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 981 of 3,140
Page 99 of 314