Verityprep
Question Bank

AP® Computer Science A Practice Questions

Work through AP Computer Science A practice 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 851–860 of 3,140
  1. 851
  2. 852
  3. 853
  4. 854
  5. 855
  6. 856
  7. 857
  8. 858
  9. 859
  10. 860

Question 851

Multiple choice Unit 2: Selection and Iteration
Which if statement…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 852

Multiple choice Unit 2: Selection and Iteration
What is the output of this program? int phLevel = 9; if(phLevel < 7) { System.out.println("It is acidic!"); }…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 853

Multiple choice Unit 2: Selection and Iteration
What is the output of this program? int numTreeRings = 50; System.out.println("How old is the tree?"); if(numTreeRings < 20) {…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 854

Multiple choice Unit 2: Selection and Iteration
Consider the following code snippet if (x == y) { // Statement A } else…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 855

Multiple choice Unit 2: Selection and Iteration
Consider the following code snippet if (x == y) { // Statement A } else…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 856

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 857

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 858

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 859

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 860

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 851 of 3,140
Page 86 of 314