Six exam-style questions through Activity 2.7, weighted toward scope, refactoring, and abstraction. These sets are cumulative, so anything earlier is still fair game.
Question 3 matters more than it looks. It is about which code counts as yours for the Create task, and getting it wrong there costs more points than any other single mistake in this course.
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?
int count = 10;
Console.WriteLine(Bump(count));Console.WriteLine(count);
int Bump(int count){ count = count + 1; return count;}11 then 1111 then 1010 then 11Why will this C# not build?
Console.WriteLine(Area(4, 5));Console.WriteLine(result);
int Area(int w, int h){ int result = w * h; return result;}Area is never calledresult is local to Area and does not exist outside itresult has to be returned twiceConsole.WriteLine cannot print a variableA student writes a Raylib program. Which of these count as student-developed procedures for the Create Performance Task?
DrawFish(x, y, size, color), which the student wrote and callsRaylib.DrawCirclewhile loop, including its IsMouseButtonPressed checkCalculateTotal(price, quantity), which the student wrote and callsRefactoring is best described as:
A method can use a variable declared in the main program, but the main program cannot use a variable declared inside a method. This is:
A photo shared online carries the date, the camera model, and often the location where it was taken. This information is called:
Six answers, each marked sure or unsure, plus how far you got when the timer went off.