AP CSA Unit-Level MCQ
Casting and Math.random
Practice mode with 25 hard 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 25 original Java MCQs and immediate explanations.
Question 1 of 25
Answered 0 of 25
Choose one answer.
Which value is closest to what is printed?
int completed = 19;
int bonus = 7;
int days = 4;
double average = (double) (completed + bonus) / days;
System.out.print(average);