TestYourself questions for Rule writing techniques and logical equivalents

Note: Try this test, and then go to TestYourself answers for Rule writing techniques and logical equivalents to see how you did.
  1. Filters act as master rules for all other rules in the same Rulesheet that share the same _________.
  2. An expression that evaluates to a true or false value is called a _________ expression.
  3. True or False. Condition row values sets must be complete.
  4. True or False. Action row values sets must be complete.
  5. The special term __________ can be used to complete any condition row values set.
  6. Which operator is used to negate a Boolean expression?
  7. If a Boolean expression is written in a condition row, which values are automatically entered in the values set when Enter is pressed?
  8. A Filter expression written as Entity.boolean1=T is equivalent to which of the following? (Circle all that apply.)
    Entity.boolean1 Entity.boolean1<>F Entity.boolean1=F not (Entity.boolean1=F)
  9. Of all alternatives listed in Question 8, which is the best choice? Why?
  10. Describe the error (if any) in each of the following value ranges. Assume all are used in Conditions values sets.
    1. {1…10, other}
    2. {1..a, other}
    3. {‘a'..other}
    4. {1..10, 5..20, other}
    5. {1..10, [10..20), other}
    6. {‘red', ‘green', ‘blue'}
    7. {<0, 0..15, >3}
  11. True or False. The special term other can be used in Action row values sets.
  12. Using best practices discussed in this section, model the following rules on a single Rulesheet:
    • If the part is in stock and it has a blue tag, then the part's discount is 10%.
    • If the part is in stock and it has a red tag, then the part's discount is 15%.
    • If the part is in stock and it has a yellow tag, then the part's discount is 20%.
    • If the part is in stock and it has a green tag, then the part's discount is 25%.
    • If the part is in stock and it has any other color tag, then the part's discount is 5%.
  13. True or False. A nonconditional rule is equivalent to an action expression with no condition.
  14. True or False. A nonconditional rule is governed by any preconditions on the same Rulesheet.