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 441–450 of 454
  1. 441
  2. 442
  3. 443
  4. 444
  5. 445
  6. 446
  7. 447
  8. 448
  9. 449
  10. 450

Question 441

Multiple choice Using Objects
Which offered value of s makes a and b different? String a =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 442

Multiple choice Using Objects
What is printed? Java evaluates method arguments from left to right. String s =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 443

Multiple choice Using Objects
s is nonempty. Which statement describes result after the code executes for every…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 444

Multiple choice Using Objects
s is nonempty. Which…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 445

Multiple choice Using Objects
x and y are nonempty and have equal lengths. The condition below is true. Which…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 446

Multiple choice Using Objects
a and b may be empty. Which condition is necessary and sufficient for…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 447

Multiple choice Using Objects
What is printed as a result of executing the following code segment? String s = "computer"; String r =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 448

Multiple choice Using Objects
What is printed as a result of executing the following code segment? String s = "banana"; int count = 0; for (int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 449

Multiple choice Using Objects
What is printed as a result of executing the following code segment? String a =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 450

Multiple choice Using Objects
What is printed as a result of executing the following code segment? String a = "apple", b = "banana";…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 441 of 454
Page 45 of 46