Verityprep
Question Bank · Unit 1

AP® Computer Science A Using Objects and Methods Multiple Choice Questions

Work through AP Computer Science A multiple-choice questions on Using Objects and Methods, 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 681
  1. 601
  2. 602
  3. 603
  4. 604
  5. 605
  6. 606
  7. 607
  8. 608
  9. 609
  10. 610

Question 601

Multiple choice Using Objects
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 Using Objects
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 Using Objects
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 Using Objects
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 Using Objects
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 Using Objects
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 Using Objects
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 Using Objects
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 Using Objects
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 Using Objects
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 681
Page 61 of 69