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 771–780 of 2,811
  1. 771
  2. 772
  3. 773
  4. 774
  5. 775
  6. 776
  7. 777
  8. 778
  9. 779
  10. 780

Question 771

Multiple choice Unit 2: Selection and Iteration
What boolean value is held in the following boolean variable if hasBike is…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 772

Multiple choice Unit 2: Selection and Iteration
What boolean value is held in the following boolean variable if hasHeadlight is true…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 773

Multiple choice Unit 2: Selection and Iteration
What is the proper way to…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 774

Multiple choice Unit 2: Selection and Iteration
Reference equality uses the equality operator (==) and…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 775

Multiple choice Unit 2: Selection and Iteration
Logical equality compares…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 776

Multiple choice Unit 2: Selection and Iteration
Which…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 777

Multiple choice Unit 2: Selection and Iteration
What will this code output? if (true && true && false) { System.out.println("Hello…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 778

Multiple choice Unit 2: Selection and Iteration
What will this program print if the value of grade is 80? if(grade > 90) { System.out.println("A");…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 779

Multiple choice Unit 2: Selection and Iteration
What will the values of x and y be after this code segment runs? int x = 100; int y =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 780

Multiple choice Unit 2: Selection and Iteration
Assuming a and b are properly initialized boolean values,…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 771 of 2,811
Page 78 of 282