Ask 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 <0

3) Num%2==1

4) Num/2==1

+1
Answers (1)
  1. 20 April, 20:24
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers