Ask Question
30 November, 05:58

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

+3
Answers (1)
  1. 30 November, 06:29
    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?
Get 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 there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers