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.
Multiple choice
Iteration
Question 452
Multiple choice
Boolean Expressions
Question 453
Multiple choice
Iteration
Question 454
Multiple choice
Iteration
Question 455
Multiple choice
Boolean Expressions
Question 456
Multiple choice
Iteration
Question 457
Multiple choice
Boolean Expressions
Which of the following is true exactly when
n is outside the range 5 through 12, inclusive?
Pick an answer, then check it. The solution opens in a window.
BCorrect answer
Main Solution
Answer
Answer: B. Values outside the inclusive interval [5, 12] are those that are either less than 5 or greater than 12.
Answer: Correct: B
A
n < 5 && n > 12
B
n < 5 || n > 12
C
n <= 5 || n >= 12
D
!(n < 5 || n > 12)
Answer images
Question 458
Multiple choice
Iteration
Question 459
Multiple choice
Boolean Expressions
Question 451 of 740
Page 46 of 74
AP® and Advanced Placement® are registered trademarks of the College Board, which is not affiliated with, and does not endorse, Verityprep. Names are used for identification purposes only.

