TestYourself questions for Rule scope and context
- Last Updated: March 24, 2022
- 3 minute read
- Corticon
- Version 6.3
- Documentation
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.
- How many root-level entities are in the Vocabulary?
- Which of the following terms are allowed by the Vocabulary?
Movie.roles Actor.roles DVD.actor Award.movie - Which of the following terms are not allowed
by the Vocabulary?
Movie.oscar Movie.supplier Movie.roles.actor Movie.dVD.extras - 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 ____________________
- 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 - Because the association between Actor and Role is bidirectional, you can use both Actor.roles and _____________ in the rules.
- Which two entities are associated with each other by more than one role?
- What are the role names?
- Besides roles, how else could these two relationships be represented in the Vocabulary to convey the same business meaning?
- What is the advantage of using roles in this way?
- When more than one role is used to associate two entities, each role name
must be:
friendly unique colorful melifluous - True or False. Rules evaluate only data that shares the same scope
- 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:
- Which term should be used to represent
Movie? - Which term should be used to represent
DVD? - True or False. The following Rulesheet correctly relates the
MovieandDVDentities? - Given the business intent, how many times do you want the rule to fire given
this Input Testsheet?
- Given the Ruletest above, how many times does the rule actually fire?
- 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?
- True or False. Whenever rules contain scope, you must define aliases in the Scope section of the Rulesheet.
- Scope is another way of defining a specific _______________ in the Vocabulary
- 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 - True or False. The spelling of an alias can be the same as the Vocabulary entity it represents?