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

Question 671

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