skip to main content
Corticon Studio: Rule Modeling Guide : Rule scope and context : Test yourself questions: Rule scope and context
 

Try Corticon Now

Test yourself questions: Rule scope and context

Note: Try this test, and then go to Test yourself answers: Rule scope and context to correct yourself.
Use the following Vocabulary to answer the next questions.
1. How many root-level entities are present 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. Since the association between Actor and Role is bidirectional, we can use both Actor.roles and _____________ in our 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 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 our business intent, how many times do we want the rule to fire given the Input Testsheet below?
18. Given the Ruletest Input above, how many times does the rule actually fire?
19. Assume we update the Rulesheet to include another rule, as shown below. Answer the following questions:
*Assuming the same Ruletest Input as question 57, what result do we want for Cinderella?
*What result do we want for Toy Story?
*What results do we 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 our result make business sense?
*What changes should be made to the Rulesheet so that it functions as we intend?
20. True or False. Whenever our rules contain scope, we 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 may be the same as the Vocabulary entity it represents?