| preferred AP College board partner for AP classes
AP Computer Science A/Unit 4: Iteration
Start Practice Test
Share
medium Solved by 3 students
Integer Division in Boolean Expressions
< Prev
Next >

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(19, 6, 3.2)

B

meetsThreshold(23, 7, 3.3)

C

meetsThreshold(17, 5, 3.0)

D

meetsThreshold(17, 5, 3.5)

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

Question Leaderboard

Not enough data yet to show leaderboard.

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