Six exam-style questions, mostly about counted loops and the four loop patterns — Activities 1.19 and 1.20. These sets are cumulative, so while, conditions, arithmetic, and Part 0 are all still fair game.
The AP exam gives you 70 questions in 120 minutes, which is 1 minute 43 seconds each.
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.
Four have exactly one correct answer, one asks you to select all that apply, and the last is about data or the impact of computing rather than about code.
What does the following C# display?
for (int i = 0; i < 4; i++){ Console.Write(i);}0123123401234123The following is written in AP exam notation. What does it display?
i ← 1
REPEAT 3 TIMES{ i ← i + 1 DISPLAY(i)}1 2 32 3 41 2 3 40 1 2A program reads five temperature readings in a loop. Which line answers the question “how many readings were above 20?”
total = total + reading;if (reading > 20){ count = count + 1;}if (reading > 20){ count = count + reading;}total = total + 20;A program finds the largest of five readings, and on this particular day every reading is below zero. Which starting values for highest still give the correct answer?
int highest = 0;int highest = -999;int highest = 999;What does the following C# display?
int total = 7;int count = 2;
double average = total / count;
Console.WriteLine($"{average:F1}");3.53.04.03A city publishes the average household income for each neighborhood. One neighborhood contains a single household with an extremely high income. Which statement best describes the effect on that neighborhood's published figure?
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.