TestYourself questions for Collections
- Last Updated: March 24, 2022
- 2 minute read
- Corticon
- Version 6.3
- Documentation
Note: Try this test, and then go to TestYourself answers for Collections to see how you
did.
- Children of a Parent entity are also known as ____________ of a collection.
- True or False. All collections must have a parent entity.
- True or False. Root-level entities can form a collection.
- True or False. A collection operator must operate on a collection alias.
- List three Collection operators and describe what they do.
- Which reference contains usage details and examples for every collection operator?
- Write a Rule Statement that is equivalent to the syntax
Order.total = items.price->sum. - In the syntax in Question 7, which term is the collection alias?
- If
itemsis an alias representing theLineItementities associated with anOrderentity, then what would you expect the cardinality of this association to be? - Is
Order.lineItem.price->suman acceptable replacement for the syntax in Question 7? Why or why not? - If you are a Vocabulary designer and want to prevent rule authors from
building rules with
LineItem.orderterms, what can you do to prevent it? - When collection operators are not used in a Rulesheet, aliases are
(circle all that apply)
Optional Mandatory Colorful Convenient - If a nonconditional rule states
LineItem.price = 100, and my Input Testsheet contains 7LineItementities, then a collection of data is processed by this rule. Is a collection alias required? Why or why not? - Which collection operator is known as the universal quantifier?
- Which collection operator is known as the existential quantifier?
For questions 16-18, refer to the following Vocabulary
- Write expressions for each of the following phrases:
- If an actor has had more than 3 roles
- If a movie has not been released on DVD
- If a movie has at least one DVD with deleted scenes
- If a movie won at least one Golden Globe
- If the movie had more than 15 actors
- If there are at least 100 copies available of a movie
- If there are less than 2 copies available of a movie
- If the DVD can be obtained from more than 1 supplier
- Which entities could be grandchildren of Movie?
- Which entites could be children of Role?
- Describe the difference between
->forAlland->existsoperators. - Describe the difference between
->notEmptyand->isEmptyoperators. - Why are aliases required to represent collections?