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.

Questions 731–740 of 776
  1. 731
  2. 732
  3. 733
  4. 734
  5. 735
  6. 736
  7. 737
  8. 738
  9. 739
  10. 740

Question 731

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 732

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 733

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 734

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 735

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 736

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 737

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 738

Multiple choice Using Objects
a and b have equal lengths. Which…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 739

Multiple choice Using Objects
What is printed? String a = "9"; String b = "10";…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 740

Multiple choice Using Objects
Which pair makes both comparisons true?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 731 of 776
Page 74 of 78