Multiple choice

Suppose i =7, f = 5.5 and c = 'W', what is the value of the given expression? (c ! = 'p' || i+f <=10)

  1. 1

  2. 0

  3. -1

  4. Not defined

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The expression is (c != 'p' || i + f <= 10). Since c is 'W', c != 'p' is true. In an OR expression, if the first part is true, the whole expression is true (1).