skip to main content
Corticon Studio: Rule Modeling Guide : Collections : Test yourself questions: Collections

Try Corticon Now

Test yourself questions: Collections

Note: Try this test, and then go to Test yourself answers: Collections to correct yourself.
1. Children of a Parent entity are also known as ____________ of a collection.
2. True or False. All collections must have a parent entity
3. True or False. Root-level entities may form a collection
4. True or False. A collection operator must operate on a collection alias.
5. List three Collection operators and describe what they do.
6. Which reference contains usage details and examples for every collection operator?
7. Write a Rule Statement that is equivalent to the syntax = items.price->sum
8. In the syntax in question 7, which term is the collection alias?
9. If items is an alias representing the LineItem entities associated with an Order entity, then what would you expect the cardinality of this association to be?
10. Is Order.lineItem.price->sum an acceptable replacement for the syntax in Question 7? Why or why not?
11. If you are a Vocabulary designer and want to prevent rule authors from building rules with LineItem.order terms, what can you do to prevent it?
12. When collection operators are NOT used in a Rulesheet, aliases are (circle all that apply)
13. If a Nonconditional rule states LineItem.price = 100, and my Input Testsheet contains 7 LineItem entities, then a collection of data is processed by this rule. Is a collection alias required? Why or why not?
14. Which collection operator is known as the Universal Quantifier?
15. Which collection operator is known as the Existential Quantifier?
For questions 16-18, refer to the following Vocabulary
16. Write expressions for each of the following phrases:
a. If an actor has had more than 3 roles…
b. If a movie has not been released on DVD…
c. If a movie has at least one DVD with deleted scenes…
d. If a movie won at least one Golden Globe
e. If the movie had more than 15 actors…
f. If there's at least 100 copies available of a movie…
g. If there's less than 2 copies available of a movie…
h. If the DVD can be obtained from more than 1 supplier…
17. Which entities could be grandchildren of Movie?
18. Which entites could be children of Role?
19. Describe the difference between ->forAll and ->exists operators.
20. Describe the difference between ->notEmpty and ->isEmpty operators.
21. Why are aliases required to represent collections?