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 671–680 of 681
  1. 671
  2. 672
  3. 673
  4. 674
  5. 675
  6. 676
  7. 677
  8. 678
  9. 679
  10. 680

Question 671

Multiple choice Primitive Types
What is printed as a result of executing the following code segment?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 672

Multiple choice Primitive Types
What is printed as a result of executing the following code segment? int hour =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 673

Multiple choice Primitive Types
What is printed as a result of executing the following code segment? double total = 0;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 674

Multiple choice Using Objects
What is printed as a result of executing the following code segment? String s = "computer"; String r =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 675

Multiple choice Using Objects
What is printed as a result of executing the following code segment? String s = "banana"; int count = 0; for (int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 676

Multiple choice Using Objects
What is printed as a result of executing the following code segment? String a =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 677

Multiple choice Using Objects
What is printed as a result of executing the following code segment? String a = "apple", b = "banana";…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 678

Multiple choice Using Objects
What is printed as a result of executing the following code segment? String s = "Education"; int v = 0; for (int i…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 679

Multiple choice Using Objects
What is printed as a result of executing the following code segment? String s = "mathematics"; String out = ""; for (int i =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 680

Multiple choice Using Objects
What is printed as a result of executing the following code segment? String s = "ab cd ef"; String r = ""; int i = 0;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 671 of 681
Page 68 of 69