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 1,091–1,100 of 3,140
  1. 1091
  2. 1092
  3. 1093
  4. 1094
  5. 1095
  6. 1096
  7. 1097
  8. 1098
  9. 1099
  10. 1100

Question 1091

Multiple choice Unit 2: Selection and Iteration
What is printed? int count = 0; for (int i = 1; i <= 4; i++) { for…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1092

Multiple choice Unit 2: Selection and Iteration
What is the result of executing the following code? int x = 0;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1093

Multiple choice Unit 2: Selection and Iteration
What is printed? String s = "COMPUTER"; String result = ""; for (int i = 0; i <…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1094

Multiple choice Unit 2: Selection and Iteration
Consider the following method. public static int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1095

Multiple choice Unit 2: Selection and Iteration
What is printed? int a = 5, b = 12; boolean p = !(a > 3 && b < 10); boolean…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1096

Multiple choice Unit 2: Selection and Iteration
What is printed? int count = 0; for (int i = 1; i <= 50; i++) { if…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1097

Multiple choice Unit 2: Selection and Iteration
What is printed? int sum = 0; for (int i = 1; i <= 3; i++) { for…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1098

Multiple choice Unit 2: Selection and Iteration
The following code generates a well-known sequence. What is printed? int a = 1, b = 1; for…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1099

Multiple choice Unit 2: Selection and Iteration
Consider this method that analyzes two-digit numbers. public static boolean…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1100

Multiple choice Unit 2: Selection and Iteration
What is printed? int x = 1; for (int i = 0; i <…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1,091 of 3,140
Page 110 of 314