MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

DATA STRUCTURES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which of the following is not a logical operator?
A
&&
B
»
C
!
D
||
Explanation: 

Detailed explanation-1: -! is a NOT operator. So, ‘&’ is not a Logical operator.

Detailed explanation-2: -The NOT logical operator reverses the true/false outcome of the expression that immediately follows. The NOT operator affects only the expression that immediately follows, unless a more complex logical expression is enclosed in parentheses. You can substitute   or ¬ for NOT as a logical operator.

Detailed explanation-3: -In this question, & is not a logical operator and && represents the logical AND operator, || represents an OR logical operator and ! represents NOT logical operator.

Detailed explanation-4: -The logical NOT operator is represented as the ‘!’ symbol, which is used to reverse the result of any given expression or condition. If the result of an expression is non-zero or true, the result will be reversed as zero or false value.

Detailed explanation-5: -There are three logical operators: and, or, and not .

There is 1 question to complete.