0
2.8kviews
Evaluate following expression:-

(i) ! (5+5 > 10)

(ii) 5 + 5 = = 10 || 1 + 3 = = 5

(iii) 5.10 || 10 < 20 && 3 < 5

Mumbai university > FE > SEM 2 > Structured Programming Approach

Marks: 3M

Year: Dec 2014

1 Answer
0
324views
  • ! (5 + 5 > 10)

    $(Logical \ \ NOT) \ \ \ ! (5 + 5 \gt 10) returns \ true.$

  • 5 + 5 = = 10 || 1 + 3 = = 5

    $| | \ \ (Logical \ OR) \ \ \ 5 + 5 = = 10 \ || \ 1 + 3 == 5 \ returns \ true.$

  • 5.10 || 10 < 20 && 3 < 5

    Logical OR || and Logical AND &&

    5.10 | 10 < 20 && 3 < 5 = 5.1

Please log in to add an answer.