COMPUTER PROGRAMMING FUNDAMENTALS
5 BASIC ELEMENTS OF PROGRAMMING
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
Evaluate the following expressions to True or False3!=4-1
|
True
|
|
False
|
|
Either A or B
|
|
None of the above
|
Explanation:
Detailed explanation-1: -In the first statement, the two operands are equal, so the expression evaluates to True; in the second statement, 5 is not equal to 6, so we get False.
Detailed explanation-2: -|| (Logical OR) operator If one of the operands or expressions is true, it will return 1. If all of them are false, it will return 0.
There is 1 question to complete.