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.

Questions 641–650 of 681
  1. 641
  2. 642
  3. 643
  4. 644
  5. 645
  6. 646
  7. 647
  8. 648
  9. 649
  10. 650

Question 641

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 642

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 643

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 644

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 645

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 646

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 647

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 648

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 649

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 650

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 641 of 681
Page 65 of 69