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.

Subtopic: Using Objects Clear filter

Questions 381–390 of 454
  1. 381
  2. 382
  3. 383
  4. 384
  5. 385
  6. 386
  7. 387
  8. 388
  9. 389
  10. 390

Question 381

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 382

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 383

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 384

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 385

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 386

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 387

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 388

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 389

Multiple choice Using Objects
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 390

Multiple choice Using Objects
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 381 of 454
Page 39 of 46