Verityprep
Question Bank

AP® Computer Science A Multiple Choice Questions

Work through AP Computer Science A multiple-choice 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 641–650 of 2,811
  1. 641
  2. 642
  3. 643
  4. 644
  5. 645
  6. 646
  7. 647
  8. 648
  9. 649
  10. 650

Question 641

Multiple choice Unit 1: Using Objects and Methods
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 642

Multiple choice Unit 1: Using Objects and Methods
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 643

Multiple choice Unit 1: Using Objects and Methods
a and b have equal lengths. Which…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 644

Multiple choice Unit 1: Using Objects and Methods
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 645

Multiple choice Unit 1: Using Objects and Methods
Which pair makes both comparisons true?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 646

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 647

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 648

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 649

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 650

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 641 of 2,811
Page 65 of 282