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 601–610 of 2,811
  1. 601
  2. 602
  3. 603
  4. 604
  5. 605
  6. 606
  7. 607
  8. 608
  9. 609
  10. 610

Question 601

Multiple choice Unit 1: Using Objects and Methods
What is printed? The variable ending is not final. String ending = "ar"; String built = "st" + ending; String…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 602

Multiple choice Unit 1: Using Objects and Methods
What is printed? String state = "reset"; if (state.equals("reset")) { state =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 603

Multiple choice Unit 1: Using Objects and Methods
Which replacement for the blank makes the code print 6:m? String word = "plum"; int total = 0; for…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 604

Multiple choice Unit 1: Using Objects and Methods
The Strings text and suffix are non-null, and suffix is nonempty. Which…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 605

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

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 606

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 607

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 608

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 609

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 610

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 601 of 2,811
Page 61 of 282