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

Question 481

Multiple choice Primitive Types
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 Primitive Types
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 Primitive Types
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 Primitive Types
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 Primitive Types
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 Using Objects
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 Using Objects
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 Using Objects
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 Using Objects
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 Using Objects
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 681
Page 49 of 69