Verityprep
Question Bank · Unit 2

AP® Computer Science A Selection and Iteration Practice Questions

Work through AP Computer Science A practice questions on Selection and Iteration, 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 81–90 of 740
  1. 81
  2. 82
  3. 83
  4. 84
  5. 85
  6. 86
  7. 87
  8. 88
  9. 89
  10. 90

Question 81

Multiple choice Boolean Expressions
Which of the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 82

Multiple choice Boolean Expressions
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 83

Multiple choice Boolean Expressions
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 84

Multiple choice Boolean Expressions
Which of the below…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 85

Multiple choice Boolean Expressions
What does this Java…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 86

Multiple choice Boolean Expressions
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 87

Multiple choice Boolean Expressions
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 88

Multiple choice Boolean Expressions
Which of the following logical statements is…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 89

Multiple choice Boolean Expressions
Which of the following logical statements is…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 90

Multiple choice Boolean Expressions
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 81 of 740
Page 9 of 74