Six exam-style questions. Most are about compound logic, nested conditions, and randomness — Activities 1.15 and 1.16 — but these sets are cumulative, so everything from Part 1 is still fair game.
The AP exam gives you 70 questions in 120 minutes. That is 1 minute 43 seconds each. You have now done this three times; the target is that it stops feeling like a rush.
Guessing beats leaving it blank. There is no penalty for a wrong answer on the AP exam, so a blank is a guaranteed zero where a guess is not.
Five of these have exactly one correct answer. One asks you to select all that apply — the real exam has eight questions like that, and they are the ones students lose points on by stopping at the first true statement.
The following is written in AP exam notation. Which values could n display?
n ← RANDOM(2, 5)DISPLAY(n)2, 3, 4, 52, 3, 43, 4, 50, 1, 2, 3, 4, 5Which C# expression gives a whole number from 1 to 10, with both 1 and 10 possible?
Random.Shared.Next(1, 10)Random.Shared.Next(1, 11)Random.Shared.Next(0, 10)Random.Shared.Next(10)The following is written in AP exam notation. What does it display?
a ← 8b ← 3
IF(a > 5){ IF(b > 5) { DISPLAY("both") } ELSE { DISPLAY("first only") }}ELSE{ DISPLAY("neither")}bothfirst onlyneitherA variable x holds 10 and a variable y holds 0. Which of the following C# expressions evaluate to true?
x > 5 && y > 5x > 5 || y > 5!(y > 5)x > 5 && !(y > 5)What does the following C# display?
bool r = true || false && false;
Console.WriteLine(r);TrueFalseA school runs a prize drawing with a program that picks a student at random from a numbered list. The range it uses stops one short, so the last student on the list can never be picked. Which of the following is the strongest reason this matters beyond being a coding mistake?
This is graded on completion, not accuracy. A thoughtful wrong answer earns the same as a right one. What is being built here is speed and stamina, and both require being allowed to get things wrong cheaply.