CJCoding With Joseph
15free / daySign inCreate account
Back to Multiple Choice Quiz

Select topics to narrow your question pool, then enable Random to jump to a random question matching your filters.

Topics

Evenly Divisible

Java quiz · Question 15
hardMethods

What does this method return for isEvenlyDivisible(20, 7)?

Code

1public static boolean isEvenlyDivisible(int num, int divisor) {
2 if (divisor == 0) {
3 return false;
4 }
5 return num % divisor == 0;
6}