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 481–490 of 2,811
  1. 481
  2. 482
  3. 483
  4. 484
  5. 485
  6. 486
  7. 487
  8. 488
  9. 489
  10. 490

Question 481

Multiple choice Unit 1: Using Objects and Methods
What is the value of result after the following code segment…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 482

Multiple choice Unit 1: Using Objects and Methods
What is printed by the following code segment? int m = 9; int n = 4;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 483

Multiple choice Unit 1: Using Objects and Methods
What is the value of p after the following code segment is…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 484

Multiple choice Unit 1: Using Objects and Methods
What is the value of d after the following statement is…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 485

Multiple choice Unit 1: Using Objects and Methods
Which of the following expressions produces a random…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 486

Multiple choice Unit 1: Using Objects and Methods
What is printed by the following code segment? String s = "computer"; String t…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 487

Multiple choice Unit 1: Using Objects and Methods
What is printed by the following code segment? String w = "stream"; String x =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 488

Multiple choice Unit 1: Using Objects and Methods
Consider the following declarations: String a = "Apple"; String b = "apple"; String c = "banana"; Which of…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 489

Multiple choice Unit 1: Using Objects and Methods
Consider the following declaration: String s = "hello";…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 490

Multiple choice Unit 1: Using Objects and Methods
What is printed by the following code segment? String s1 = "pear"; String s2 = "peach"; if (s1.compareTo(s2) <…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 481 of 2,811
Page 49 of 282