152k views
5 votes
The boolean expression (a || b) || !(a || b) evaluates to?
1) True
2) False

User Xani
by
8.7k points

1 Answer

2 votes

Final answer:

The boolean expression (a || b) || !(a || b) evaluates to True.

Step-by-step explanation:

The boolean expression (a || b) || !(a || b) evaluates to True. In the expression, (a || b) represents the logical OR operation between variables a and b. If either a or b (or both) is true, the result will be true. Then, the ! operator is applied to the result of (a || b), which negates the outcome. Since (a || b) is true, ! (a || b) will be false.

User JanMalte
by
8.4k points