Verityprep
Question Bank

AP® Computer Science A Practice Questions

Work through AP Computer Science A practice questions unit by unit, 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 3,140
  1. 741
  2. 742
  3. 743
  4. 744
  5. 745
  6. 746
  7. 747
  8. 748
  9. 749
  10. 750

Question 741

Multiple choice Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 3,140
Page 75 of 314