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 741–750 of 776
  1. 741
  2. 742
  3. 743
  4. 744
  5. 745
  6. 746
  7. 747
  8. 748
  9. 749
  10. 750

Question 741

Multiple choice Using Objects
s is nonempty. Which condition is guaranteed after these…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 742

Multiple choice Using Objects
The int k satisfies 1 <= k <= 5. Which value makes rotated equal to s?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 743

Multiple choice Using Objects
What happens when this code executes? String s = "go";…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 744

Multiple choice Using Objects
What happens when this code executes? String s = "ABCD";…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 745

Multiple choice Using Objects
Which offered value of s makes the code print true without an exception?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 746

Multiple choice Using Objects
What is printed? String value = null;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 747

Multiple choice Using Objects
What is printed? String a = "go"; String b = a; a = null;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 748

Multiple choice Using Objects
What happens when the code executes? String s = null; if (s == null || s.length()…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 749

Multiple choice Using Objects
s may be null or empty. Which condition safely accepts…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 750

Multiple choice Using Objects
What is printed? String s = "ABCDE"; int count = 0; for (int i = 0; i <…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 741 of 776
Page 75 of 78