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 701–710 of 3,140
  1. 701
  2. 702
  3. 703
  4. 704
  5. 705
  6. 706
  7. 707
  8. 708
  9. 709
  10. 710

Question 701

Multiple choice Unit 1: Using Objects and Methods
What is printed? String a = "stone"; String b = a + "s";…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 702

Multiple choice Unit 1: Using Objects and Methods
What is printed? String a = "acorn"; String b = "azure";…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 703

Multiple choice Unit 1: Using Objects and Methods
Which offered value of name makes accepted true? All text uses ordinary English…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 704

Multiple choice Unit 1: Using Objects and Methods
A catalog range includes every key at or after "c" but before "m" in Java lexicographic order.…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 705

Multiple choice Unit 1: Using Objects and Methods
What is printed? String a = "zoo"; String b = "aardvark"; if (a.length() < b.length()) {…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 706

Multiple choice Unit 1: Using Objects and Methods
The non-null Strings a and b have already been declared. Each offered declaration is…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 707

Multiple choice Unit 1: Using Objects and Methods
What is printed? String a = "elm"; String b = "oak"; String result = "?"; if (a.compareTo(b) < 0)…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 708

Multiple choice Unit 1: Using Objects and Methods
Which offered value of text makes count equal to 2? int count = 0; for (int i = 1; i <…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 709

Multiple choice Unit 1: Using Objects and Methods
What is printed? String text = "A2B4C"; String digits = "0123456789"; int total = 0; for (int i = 0; i < text.length(); i++) {…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 710

Multiple choice Unit 1: Using Objects and Methods
What is printed? String text = "aaaaa"; int hits = 0; for (int i = 0; i <= text.length() - 2;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 701 of 3,140
Page 71 of 314