FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

5 BASIC ELEMENTS OF PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which operator can be used to compare two values?
A
<>
B
<=
C
=
D
==
Explanation: 

Detailed explanation-1: -The equality operator (==) is used to compare two values or expressions. It is used to compare numbers, strings, Boolean values, variables, objects, arrays, or functions. The result is TRUE if the expressions are equal and FALSE otherwise.

Detailed explanation-2: -The == operator is a comparison operator.

Detailed explanation-3: -Answer: The correct answer is letter A ( == ).

Detailed explanation-4: -The equal-to operator ( == ) returns true if both operands have the same value; otherwise, it returns false .

Detailed explanation-5: -== is the equality operator. This returns true if both the operands are referring to the same object, otherwise false.

There is 1 question to complete.