Practice · 4 of 8
MCQ: What is printed?
CHALLENGE
Difficulty: advanced+25 XP
What is printed?
``java
System.out.print((double)(7 / 2));
System.out.print(" ");
System.out.print((double) 7 / 2);
`
A. 3.0 3.5
B. 3.5 3.5
C. 3.0 3.0
D. 3.5 3.0`
Print your answer as: the option letter, then your explanation of why it is correct and why each other option is wrong. First line must start with the letter.
Press Submit to check your solution.
Back to lesson: Practice: MCQ set 1: read the misconception