How much does the AP Computer Science A exam cost?
US$99 in the US, US territories, Canada and DoDEA schools; US$129 elsewhere.
US, territories, Canada
US$99 per exam
Elsewhere
US$129 per exam
Fee reduction
US$37 per exam for eligible students
On-time ordering
By November 13, 2026
Extra fees
Late order, November 14, 2026, through March 12, 2027: US$40.
Canceled or unused exam: US$40.
Try 2 questions
Question 1
Consider the following code segment.int lives = 3;
lives++;
lives++;
lives--;
lives += 2;
System.out.println("Lives: " + lives);What is printed as a result of executing the code segment?
Question 2
Consider the following code segment.double[] prices = new double[3];
boolean[] sold = new boolean[3];
String[] names = new String[3];
prices[1] = 4.5;
System.out.println(prices[0] + " " + sold[2] + " "
+ names[1]);What is printed as a result of executing the code segment?