Powered by Zoomin Software. For more details please contactZoomin

Rule Modeling

TestYourself questions for Rules containing calculations and equations

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.

  1. What are the two possible meanings of the equals operator =? In which sections of the Rulesheet is each of these meanings applicable?

  2. What is the result of each of the following equations?

    1. 10 + 20 / 5 – 4 ______
    2. 2 * 4 + 5 ______
    3. 10 / 2 * 6 – 8 ______
    4. 2 ** 3 * (1 + 2) ______
    5. -5 * 2 + 5 * 2 ______
  3. Is the following assignments expression valid? Why or why not? Entity1.integer1 = Entity1.decimal1

  4. 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') ______
  5. 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 ______      
  6. The part of Corticon Studio that checks for syntactical problems is called the __________.

  7. 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:

  8. What does Filters row 1 test?

  9. 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?

  10. 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.)

  11. 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 ______
Alert