Note: Try this test, and then go to TestYourself answers for Rule scope and context to see how you did.

Use the following Vocabulary to answer the questions.

  1. How many root-level entities are in the Vocabulary?
  2. Which of the following terms are allowed by the Vocabulary?
    Movie.roles Actor.roles DVD.actor Award.movie
  3. Which of the following terms are not allowed by the Vocabulary?
    Movie.oscar Movie.supplier Movie.roles.actor Movie.dVD.extras
  4. Which Vocabulary term represents the following phrases?
    • A movie's Oscars   ____________________
    • A movie's roles   ____________________
    • An actor's roles   ____________________
    • A DVD's distributor   ____________________
    • A movie's DVD extras   ____________________
    • An actor's Oscars   ____________________
  5. Which of the following terms represents the phrase “an actor in a role of a movie”
    Movie.roles.dVD Actor.roles.movie DVD.actor.movie Actor.movie.roles
  6. Because the association between Actor and Role is bidirectional, you can use both Actor.roles and _____________ in the rules.
  7. Which two entities are associated with each other by more than one role?
  8. What are the role names?
  9. Besides roles, how else could these two relationships be represented in the Vocabulary to convey the same business meaning?
  10. What is the advantage of using roles in this way?
  11. When more than one role is used to associate two entities, each role name must be:
    friendly unique colorful melifluous
  12. True or False. Rules evaluate only data that shares the same scope
  13. Write a conditional expression in a Rulesheet for each of the following phrases:
    • If a movie's DVD has deleted scenes…
    • If an actor played a role in a movie winning an Oscar…
    • If the DVD is an import…
    • If the movie was released more than 50 years before the DVD…
    • If the actor ever played a leading role…
    • If the movie was nominated for a Golden Globe…
    • If the distributor offers any drama DVDs…

    Given the rule “Disney animated classics are priced in the high tier”, answer the following questions:

  14. Which term should be used to represent Movie?
  15. Which term should be used to represent DVD?
  16. True or False. The following Rulesheet correctly relates the Movie and DVD entities?

  17. Given the business intent, how many times do you want the rule to fire given this Input Testsheet?

  18. Given the Ruletest above, how many times does the rule actually fire?
  19. Assume that you update the Rulesheet to include another rule, as shown. Answer the following questions:
    • Assuming the same Ruletest Input as question 17, what result do you want for Cinderella?
    • What result do you want for Toy Story?
    • What results do you get when the test is executed?
    • How many times does each rule fire?
    • How many total rule firings occurred?
    • This set of combinations is called a ________________
    • Does the result make business sense?
    • What changes should be made to the Rulesheet so that it functions as we intend?
  20. True or False. Whenever rules contain scope, you must define aliases in the Scope section of the Rulesheet.
  21. Scope is another way of defining a specific _______________ in the Vocabulary
  22. If you change the spelling of an alias in the Scope section, then everywhere that alias is used in the Rulesheet will:
    turn red be deleted be updated be ignored
  23. True or False. The spelling of an alias can be the same as the Vocabulary entity it represents?