Evaluate the following conditional expressions in a step-by-step manner as shown in the examples when x = 1 and y = 2.
Note: In the solutions below, indicate the current logical expression being evaluated according to the rules of precedence.
NOT((x — 2) > = 1 OR (x — 1) < > 0 AND NOT (x = 1)) Evaluates as True
Assign Values NOT ((1 — 2) > = 1 OR (1 — 1) < > 0 AND NOT (1 = 1))
Add Parentheses NOT (((1 — 2) > = 1) OR ((1 — 1) < > 0 ) AND NOT (1 = 1))
Do Arithmetic NOT ((— 1 > = 1) OR (0 < > 0) AND NOT (1 = 1))
Evaluate Relational Exp. NOT (F OR F AND NOT(T))
Evaluate Logical Exp.
Inside Parentheses
NOT NOT ( F OR F AND F) = NOT (F OR F)
AND NOT (F OR F) = NOT (F)
OR NOT (F) =T
Get Result True
You might also like to view...
Valid values that may be entered in a field are specified using the ____________________ propoerty.
Fill in the blank(s) with the appropriate word(s).
List and describe three metacharacters that you can use with JavaScript regular expressions.
What will be an ideal response?