Six exam-style questions. Most are about decisions — Activities 1.11 through 1.13 — but these sets are cumulative, so earlier material is still fair game and will be all year.
The AP exam gives you 70 questions in 120 minutes. That is 1 minute 43 seconds each, including the ones with code to read. If Question Set 1 felt rushed, that is the point of doing these early rather than in April.
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. What does it display?
score ← 74
IF(score ≥ 70){ DISPLAY("Pass")}ELSE{ DISPLAY("Fail")}DISPLAY("Done")PassPass DoneFail DonePass Fail DoneWhat does the following code display?
int n = 85;
if (n > 50){ Console.WriteLine("Big");}else if (n > 80){ Console.WriteLine("Huge");}BigHugeBig and Huge, on separate linesThe following is written in AP exam notation. What does it display?
a ← 5b ← 5DISPLAY(a = b)true5a = bA variable age holds the number 16. Which of the following C# expressions evaluate to true?
age >= 16age != 16age < 20age == 16A student writes the following C# and is surprised that it displays Go. What is wrong with it?
bool isReady = false;
if (isReady = true){ Console.WriteLine("Go");}isReady is false, so Go is correct.true to isReady instead of comparing, so it is always true.bool cannot be used as a condition without == true.A school's course-registration program decides who may enroll in an advanced class using a single condition: whether the student passed a placement test. Which of the following is the strongest reason to review that decision rule?
else if rather than if.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.