Are you taking CLEP classes? Try clep.ai
| preferred AP College board partner for AP classes
AP Computer Science A/Unit 1: Primitive Types
Start Practice TestPractice Test
About Exam
medium Solved by 11 students

Integer Division and Double Casting

Mark
< Prev
Next >

Which of the following Java expressions evaluates to the double value 4.5?

I. (double) 9 / 2;

II. (double) (9 / 2);

III. (double) (9 / 2 + 0);
A

III only

B

II only

C

II and III only

D

I only

Hint
Did You Know?
Explain Why
Explain All Answers
Check Answer
Show Correct Answer
Report Question

Question Leaderboard

Rank
User
Correct Count
Attempt Count
Total Time
Score
#1zhenmunse11 0m 01s 99
#2y.seong202711 0m 09s 91
#3patrickmeijer00911 0m 10s 90
#4parth.taur22711 0m 12s 88
#5Potter1611 0m 14s 86
#6lsj0803092211 0m 15s 85
#7Wilbert.Ankomah2711 0m 26s 74
#810818526511 0m 29s 71
#9solsaloe01 0m 00s -10
#10701704602 0m 59s -79
Items per page:
10
1 – 10 of 13

AI Tutor

How can I help?

APFIVE © 2020.
Email: apfive@apfive.org|Privacy Policy|