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 False5 >= (1+6)-4
|
True
|
|
False
|
|
Either A or B
|
|
None of the above
|
Explanation:
Detailed explanation-1: -Both operators work similarly, if the right and left operands of AND are both TRUE the entire expression is TRUE, otherwise it is FALSE. For example, TRUE & TRUE evaluates to TRUE.
Detailed explanation-2: -Answer and Explanation: A value or expression that can be evaluated as true or false is called a boolean. Boolean expressions are expressions that evaluate whether a value is 1 or 0 or true or false.
Detailed explanation-3: -A boolean expression(named for mathematician George Boole) is an expression that evaluates to either true or false.
Detailed explanation-4: -|| (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.