Are you taking CLEP classes? Try clep.ai
| preferred AP College board partner for AP classes
AP Computer Science A/Unit 2: Using Objects
Start Practice TestPractice Test
About Exam
easy Solved by 7 students

Java Floating Point Division

Mark
< Prev
Next >

Which of the following Java statements correctly performs floating-point division to produce a precise decimal result?

A

Math.abs(14 / 5);

B

int chocAmount = 14 / 5;

C

Math.pow(14, 5);

D

double chocAmount = 14.0 / 5.0;

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
#1kaisuki11 0m 00s 100
#2Potter1611 0m 07s 93
#3chunxiangxu.cxu11 0m 11s 89
#4lsj0803092211 0m 22s 78
#5bommasam00011 1m 24s 16
#6liuwilliam07241011 2m 03s -23
#7zgj0731041702 0m 41s -61
#8richa.tuli02 1m 08s -88
Items per page:
10
1 – 8 of 8

AI Tutor

How can I help?

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