Verityprep
Question Bank · Unit 1

AP® Computer Science A Using Objects and Methods Practice Questions

Work through AP Computer Science A practice 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.

Subtopic: Using Objects Clear filter

Questions 471–480 of 546
  1. 471
  2. 472
  3. 473
  4. 474
  5. 475
  6. 476
  7. 477
  8. 478
  9. 479
  10. 480

Question 471

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 472

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 473

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 474

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 475

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 476

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 477

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 478

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 479

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 480

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 471 of 546
Page 48 of 55