83.5k views
3 votes
Which of the following is NOT a logical operator (logical connective)?

||

&&

!

*

1 Answer

4 votes

Answer:

Hi!

The correct answer is *.

Step-by-step explanation:

The operator ! means NOT:

  • If evaluated operand is true returns false.
  • If evaluated operand is false returns true.

The operator && means AND:

  • If all evaluated operands are true returns true.
  • If at least one evaluated operand is false returns false.

The operator | | means OR:

  • If at least one evaluated operand is true returns true.
  • If all evaluated operands are false returns false.

The operator * is used for multiply variables, not a logical connective.

User Andrewb
by
4.7k points