Ask Question
4 March, 06:15

If num is an int which expression always evaluates to true if num holds an odd number

1) Num%2==0

2) Num%2 <0

3) Num%2==1

4) Num/2==1

+4
Answers (1)
  1. 4 March, 06:42
    0
    The answer is 2) Num%2==1.

    The modulus operator (%) divides the left hand side by the right hand side and returns the remainder.

    Examples:

    3%2=1 : 2 goes into 3 once, with 1 remaining.

    5%2 = 1 : 2 goes into 5 twice, with 1 remaining.

    11%2 = 1 : 2 goes into 11 five times, with 1 remaining.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “If num is an int which expression always evaluates to true if num holds an odd number 1) Num%2==0 2) Num%2 ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers