TestYourself questions for Rules containing calculations and equations
- Last Updated: October 26, 2026
- 2 minute read
- Corticon
- Version 7.3
- Documentation
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 ______