106k views
0 votes
. The __________ logical operator works best when testing a number to determine if it

is outside a range.

User Harag
by
5.8k points

1 Answer

2 votes

Answer:

The OR logical operator works best when testing a number to determine if it is outside a range

Step-by-step explanation:

The answer to this statement is:

The OR logical operator works best when testing a number to determine if it is outside a range

The concept of logical operators is simple. They allow a program to make a decision based on multiple conditions

The AND (&&) operator is used to determine whether both operands or conditions are true

The NOT (!) operator is used to convert true values to false and false values to true. In other words, it inverts a value

The OR ( || ) operator is used to determine whether either of the conditions is true. If the first operand of the || operator evaluates to true, the second operand will not be evaluated.

User Nathan Dace
by
5.1k points