TestYourself questions for Rules containing calculations and equations
- Last Updated: March 24, 2021
- 2 minute read
- Corticon
- Version 7.2
- Documentation
TestYourself questions for Rules containing calculations and equations
Note: Try this test, and then go to TestYourself answers for Rules containing calculations and equations to correct
yourself.
- What are the two possible meanings of the equals operator =? In which sections of the Rulesheet is each of these meanings applicable?
- What is the result of each of the following equations?
- 10 + 20 / 5 – 4
- 2 * 4 + 5
- 10 / 2 * 6 – 8
- 2 ** 3 * (1 + 2)
- -5 * 2 + 5 * 2
- Is the following assignments expression valid? Why or why not?
Entity1.integer1 = Entity1.decimal1 - What is the data type of each of the following expressions based on the
scope shown in the following figure?

- e1.dateTime1.year
- e1.string1.toUpper
- e2 -> forAll (integer1 = 10)
- e2.decimal1 -> avg
- e1.boolean1
- e1.decimal1 > e1.decimal2
- e2.string2.contains(‘abc')
- Write “valid” or “invalid”
for each of the following assignments
- e1.decimal1 = e2.integer1
- e2.decimal2 = e2.string2
- e1.integer1 = e2.dateTime1.day
- e2.integer1 = e2 -> size
- e1.boolean2 = e2 -> exists (string1 = ‘abc')
- e2.boolean2 = e1.string1.toBoolean
- e1.boolean2 = e2 -> isEmpty
- The part of Corticon Studio that checks for syntactical problems is called the __________.
- True or False. If an expression typed in Corticon Studio does not turn red, then the expression is guaranteed
to work as expected.
Referring to the following illustration, answer questions 8 through 10:

- What does Filters row 1 test?
- What does Conditions row “a” test? Is there a simpler way to accomplish this same thing using a different operator available in the Corticon Rule Language?
- Write a Rule Statement for rule column 1. (Assume that the only action required for this rule is to post a Warning message as shown.)
- True or False. The following sections of the Rulesheet accept equations
and calculations:
- Scope
- Rule Statements
- Condition rows
- Action rows
- Column 0
- Condition cells
- Action cells
- Filters