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 331–340 of 681
  1. 331
  2. 332
  3. 333
  4. 334
  5. 335
  6. 336
  7. 337
  8. 338
  9. 339
  10. 340

Question 331

Multiple choice Primitive Types
Assuming that b is a boolean variable, what will…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 332

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 333

Multiple choice Primitive Types
What is the value of x after the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 334

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 335

Multiple choice Primitive Types
Which of the following calls to Math.random()…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 336

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

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 337

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 338

Multiple choice Primitive Types
What is the result of the following…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 339

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 340

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 331 of 681
Page 34 of 69