Verityprep
Question Bank

AP® Computer Science A Multiple Choice Questions

Work through AP Computer Science A multiple-choice questions unit by unit, 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 2,811
  1. 331
  2. 332
  3. 333
  4. 334
  5. 335
  6. 336
  7. 337
  8. 338
  9. 339
  10. 340

Question 331

Multiple choice Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
Consider: String[] parts =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 337

Multiple choice Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 2,811
Page 34 of 282