Integer Division in Boolean Expressions
Consider the following meetsThreshold method.
public static boolean meetsThreshold(int total, int count, double threshold) {
return total / count >= threshold;
}
Which of the following method calls returns true?
A
meetsThreshold(17, 5, 3.5)
B
meetsThreshold(17, 5, 3.0)
C
meetsThreshold(19, 6, 3.2)
D
meetsThreshold(23, 7, 3.3)
Question Leaderboard
| Rank | |||||
|---|---|---|---|---|---|
| #1 | hitrishabhatia | 1 | 4 | 0m 00s | 70 |
| #2 | y.seong2027 | 1 | 2 | 2m 18s | -48 |
| #3 | bommasam000 | 1 | 4 | 56m 34s | -3,324 |
Items per page:
10
1 – 3 of 3
APFIVE