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 761–770 of 2,811
  1. 761
  2. 762
  3. 763
  4. 764
  5. 765
  6. 766
  7. 767
  8. 768
  9. 769
  10. 770

Question 761

Multiple choice Unit 2: Selection and Iteration
Choose the answer that will always produce the same output as the if-else statement below. Assume that grams is an int variable that has been declared and…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 762

Multiple choice Unit 2: Selection and Iteration
Which of the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 763

Multiple choice Unit 2: Selection and Iteration
What is the output of the following code snippet? double ticketPrice = 12.75; if(ticketPrice > 15) { System.out.println("Too expensive!"); } else…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 764

Multiple choice Unit 2: Selection and Iteration
The following code snippet should print the letter grade associated with the integer value in grade. However, the if - else if statements are in the wrong…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 765

Multiple choice Unit 2: Selection and Iteration
Which of the below…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 766

Multiple choice Unit 2: Selection and Iteration
What does this Java…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 767

Multiple choice Unit 2: Selection and Iteration
In the following line of code: boolean shortCircuit = true…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 768

Multiple choice Unit 2: Selection and Iteration
What value of x would make this boolean…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 769

Multiple choice Unit 2: Selection and Iteration
Which of the following logical statements is…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 770

Multiple choice Unit 2: Selection and Iteration
Which of the following logical statements is…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 761 of 2,811
Page 77 of 282