Verityprep
Question Bank · Unit 2

AP® Computer Science A Selection and Iteration Multiple Choice Questions

Work through AP Computer Science A multiple-choice 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 91–100 of 692
  1. 91
  2. 92
  3. 93
  4. 94
  5. 95
  6. 96
  7. 97
  8. 98
  9. 99
  10. 100

Question 91

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

Multiple choice Boolean Expressions
What is the proper way to…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 93

Multiple choice Boolean Expressions
Reference equality uses the equality operator (==) and…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 94

Multiple choice Boolean Expressions
Logical equality compares…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 95

Multiple choice Boolean Expressions
Which…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 96

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

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

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

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

Multiple choice Boolean Expressions
A student is trying to determine if the following two expressions are equivalent. A. x && (!x ||…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 91 of 692
Page 10 of 70