Ask Question
30 July, 05:50

Given these values for the boolean variables x, y, and z:

x=true; y=true; z=false;

Indicate whether each expression is true (T) or false (F):

1) ! (y || z) || x

2) z && x && y

3) ! y || (z || x)

4) x || x && z

+3
Answers (1)
  1. 30 July, 07:15
    0
    1. True.

    2. False.

    3. True.

    4. True.

    Explanation:

    Remember OR operator (||) gives false when both of it's operands are false. AND Operator (&&) gives false when even one of it's operator is false.

    In first part we have

    ! (True || False) || True

    =! True||True

    =False||True

    =True

    In second part we have.

    False && True && True

    = False && True

    =False.

    In Third part

    ! True || (False || True)

    =False || True

    =True.

    In fourth part

    True || True && False

    =True|| False

    =True.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Given these values for the boolean variables x, y, and z: x=true; y=true; z=false; Indicate whether each expression is true (T) or false ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers