Ask 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 (F):

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

2) z && x && y

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

4) x || x && z

+5
Answers (1)
  1. 26 January, 20:13
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers