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 411–420 of 454
  1. 411
  2. 412
  3. 413
  4. 414
  5. 415
  6. 416
  7. 417
  8. 418
  9. 419
  10. 420

Question 411

Multiple choice Using Objects
What is printed? No spaces are printed between the numbers. String s = "ababa"; for (int k = 1; k <…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 412

Multiple choice Using Objects
What is printed? String s = "ababa"; String tail = s.substring(2);…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 413

Multiple choice Using Objects
The condition is intended to detect whether text ends with suffix. Which pair makes it return true…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 414

Multiple choice Using Objects
The condition below is true. What must also be…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 415

Multiple choice Using Objects
A student claims found is true whenever text contains both "cat" and "cater". Which offered input…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 416

Multiple choice Using Objects
The int start is a valid substring boundary, and key is nonempty. Which replacement makes p the original index of the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 417

Multiple choice Using Objects
key has exactly one character. Which condition is true…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 418

Multiple choice Using Objects
What is printed? String s = "abca"; s += s.substring(0, 1);…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 419

Multiple choice Using Objects
What is printed? String a = "car"; String b = "carb";…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 420

Multiple choice Using Objects
a, b, and prefix may contain any text, including…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 411 of 454
Page 42 of 46