Flowcharts, Pseudocode and Python
Quiz 5
Boolean Variables


For questions 1-8, assume x = 2 and y = 8. What is the truth value of each statement?
  1. x == 2

    True
    False

  2. x == 2 AND y == 8

    True
    False

  3. !(x == 2 AND y == 8)

    True
    False

  4. x != y

    True
    False

  5. x > y

    True
    False

  6. (x > y) OR (x != y)

    True
    False

  7. !(x > y) AND (x != y)

    True
    False

  8. (x > y> AND (x != y)

    True
    False

  9. pay-rate is a valid name.

    True
    False

  10. my_age is a valid name.

    True
    False