AP CSA Unit-Level MCQ

Casting and Math.random

Practice mode with 50 Java-focused questions, immediate answer checks, and explanations.

For practice use only.

Casting and Math.random MCQ Practice

Casting and Math.random AP Computer Science A topic practice with 50 original Java MCQs and immediate explanations.

Question 1 of 50

Answered 0 of 50

Choose one answer.

What is printed when the practice dashboard calculation runs?

int a = 17;
int b = 5;
System.out.print(a / b);