Verityprep
Question Bank · Unit 1

AP® Computer Science A Using Objects and Methods Practice Questions

Work through AP Computer Science A practice 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 321–330 of 546
  1. 321
  2. 322
  3. 323
  4. 324
  5. 325
  6. 326
  7. 327
  8. 328
  9. 329
  10. 330

Question 321

Multiple choice Using Objects
Which expression below is equivalent to the following?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 322

Free response Using Objects
The StringRotation class contains methods used to determine if a string is a rotation of another string. The declaration of the StringRotation class is shown…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 323

Multiple choice Using Objects
What is the output of the following code? String word = "blueprint"; String…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 324

Multiple choice Using Objects
Consider: String[] parts =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 325

Multiple choice Using Objects
Consider the following code segment: String s = "examination"; int result =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 326

Multiple choice Using Objects
Consider the following declaration: String s =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 327

Multiple choice Using Objects
Consider the following method: public static String transform(String s) { String result = ""; for (int i = 0; i <…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 328

Multiple choice Using Objects
Which of the following expressions evaluates to true given: String a =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 329

Multiple choice Using Objects
Which of the following correctly converts the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 330

Multiple choice Using Objects
What is printed by the following? String a = "JAVA";…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 321 of 546
Page 33 of 55