← All exams
AP® Practice Exam · Math and CS

AP Computer Science A

42 multiple choice4 free response

0 of 42 answered
1of 42
What is the value of `x` after the following code is executed?
int x = 5;
x += 3 * 2;
2of 42
What is printed when the following code is executed?
int a = 7;
int b = 2;
System.out.println(a / b);
3of 42
What is printed when the following code is executed?
int x = 4;
if (x % 2 == 0)
    System.out.print("even");
else
    System.out.print("odd");

39 more questions

Every multiple-choice question, Section 2 with space to write, and the answer key.

100% free · No card