FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

5 BASIC ELEMENTS OF PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Identify the result after this expression was executed:( (3 == 5) && (3 < 8) )
A
False
B
True
C
Either A or B
D
None of the above
Explanation: 

Detailed explanation-1: -The == operator compares the value or equality of two objects, whereas the Python is operator checks whether two variables point to the same object in memory. In the vast majority of cases, this means you should use the equality operators == and !=

Detailed explanation-2: -A Boolean expression is a logical statement that is either TRUE or FALSE . Boolean expressions can compare data of any type as long as both parts of the expression have the same basic data type. You can test data to see if it is equal to, greater than, or less than other data.

Detailed explanation-3: -Python Comparison Operators If the values of two operands are equal, then the condition becomes true. (a == b) is not true. If values of two operands are not equal, then condition becomes true. (a !=

Detailed explanation-4: -The true operator returns the bool value true to indicate that its operand is definitely true. The false operator returns the bool value true to indicate that its operand is definitely false.

There is 1 question to complete.