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.

Subtopic: Using Objects Clear filter

Questions 421–430 of 454
  1. 421
  2. 422
  3. 423
  4. 424
  5. 425
  6. 426
  7. 427
  8. 428
  9. 429
  10. 430

Question 421

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 422

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 423

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 424

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 425

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 426

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 427

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 428

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 429

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 430

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 421 of 454
Page 43 of 46