To evaluate the expression \( p \text{ AND } q \text{ OR } r \) with the values \( p = 0 \), \( q = 1 \), and \( r = 1 \), we follow the order of operations, which prioritizes the AND operation over the OR operation.
-
First, evaluate \( p \text{ AND } q \):
- \( 0 \text{ AND } 1 = 0 \) (since AND requires both operands to be true, and \( p \) is 0)
-
Now substitute that result into the expression and evaluate \( 0 \text{ OR } r \):
- \( 0 \text{ OR } 1 = 1 \) (since OR requires only one operand to be true, and \( r \) is 1)
Therefore, the final outcome of \( p \text{ AND } q \text{ OR } r \) is \( 1 \).