200k views
3 votes
The expressions in each part of an AND or OR expression use ________ evaluation; that is, they are evaluated only as much as necessary to determine whether the entire expression is true or false.

1 Answer

0 votes

Answer:

The expressions in each part of an AND or OR expression use Short Circuit evaluation; that is, they are evaluated only as much as necessary to determine whether the entire expression is true or false.

Step-by-step explanation:

Logic operations follow different type of evaluation methods that can be short circuit or open circuit evaluation. In short circuit evaluation if first operand of the expression is true or false in OR or AND operation respectively, the result will found as true or false without checking the second operand of the expression. This is called Short Circuit Evaluation.

In OR operation, If first operand is true it means that the result of the expression is true without knowing that the other operand is true or false. In AND operation, If the first operand is False, the result will found as False without knowing that whether the 2nd operand is true or false.

This Mechanism is called Short Circuit Evaluation.

User Serhat Oz
by
4.0k points