What is the result of True AND False OR True?
True AND False OR True evaluates to True.
IT seems like it does not matter which is evaluated first
as:
(True AND False) OR True = False OR True = True
True AND (False OR True) = True AND True = True
But, it does matter as with False AND False OR True:
(False AND False) OR True = False OR True = True
False AND (False OR True) = False AND True = False
and True OR False AND False:
(True OR False) AND False = True AND False = False
True OR (False AND False) = True OR False = True
Evaluated left to right gives a different answer if the
operators are reversed (as can be seen above), so AND and OR need
an order of evaluation. AND can be replaced by multiply, OR by add,
and BODMAS says multiply is evaluated before add; thus AND should
be evaluated before OR - the C programming language follows this
convention.
This makes the original question:
True AND False OR True = (True AND False) OR True = False OR
True = True