Six exam-style questions, mostly about arrays — Activities 1.23 and 1.24. These sets are cumulative, so loops, conditions, arithmetic, and Part 0 are all still fair game.
Four of the six are about the places C# and the exam disagree. Two of them are a pair: the same list, the same index, two different answers.
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.
The following is written in AP exam notation. What does it display?
aList ← [5, 10, 15]
DISPLAY(aList[1])51015What does the following C# display?
int[] a = { 5, 10, 15 };
Console.WriteLine(a[1]);51015What does the following C# display?
int[] first = { 1, 2, 3 };int[] second = first;
second[0] = 99;
Console.WriteLine(first[0]);1992What happens when the following C# runs?
string[] crew = { "Ada", "Bo", "Cy" };
Console.WriteLine(crew[crew.Length]);Console.WriteLine("Done");Cy, then Done3, then DoneDoneIndexOutOfRangeException, and Done is never displayedWhich of these are true about lists on the AP exam reference sheet?
aList is aList[1]aList ← bList assigns a copy of bListLENGTH(aList) is the number of elementsAPPEND(aList, value) puts the value at aList[1]A hiring program learns what a good candidate looks like from the résumés of people a company has already hired. Where is bias most likely to enter?
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.