QUESTION IMAGE
Question
question 43
what is the value of the following expression?
true || true && false
a false
b true
Step1: Evaluate logical - and
In the expression "true || true && false", the logical - and (&&) has higher precedence than the logical - or (||). So, first evaluate "true && false". According to the rules of logical - and, if both operands are true, the result is true; otherwise, it is false. So, "true && false" = false.
Step2: Evaluate logical - or
Now the expression becomes "true || false". According to the rules of logical - or, if at least one of the operands is true, the result is true. So, "true || false" = true.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
B. True