AP CSA MCQ Practice

Full-Length MCQ Practice Test 1

Practice mode lets students check each answer immediately and read the explanation before moving on.

For practice use only.

Full-Length MCQ Practice Test 1 - Practice Mode

Full-Length MCQ Practice Test 1 in practice mode with per-question answer checks and explanations.

Question 1 of 42

Answered 0 of 42

Choose one answer.

What is printed by the following code?

int a = 19;
int b = 4;
int c = 3;
double x = a / b + c / 2.0;
double y = (double) (a + c) / b;
int z = (int) (x + y);
System.out.print(x + " " + y + " " + z);