Embercode
✕
C++ ConditionalsQuick quiz

Decision tables

6 questions. Covers Decision tables.

Questions 1 to 5 of 6

  1. 1. A decision table has one column for each of four yes or no conditions. How many rows does the full table need?
  2. 2. Match each common mistake from the lesson to its fix.

    Choose the matching item for each row.

  3. 3. Put the steps of the lesson's method in the order they are done.

    Use the arrows to put the steps in order.

    1. 1.Write one branch in the code for each row, in the same order as the table
    2. 2.List the conditions, and write each one as a yes or no question
    3. 3.Fill in every combination of yes and no, then write the outcome for each row
  4. 4. Match each part of a decision table to what it means.

    Choose the matching item for each row.

  5. 5. A ticket has no outage, is from a paying customer, and has low severity (high is false). The priority function checks its branches from the top, and the first true one returns. Put the steps in the order they happen.

    Use the arrows to put the steps in order.

    1. 1.Row 2: paying and high, and high is false, so skip it
    2. 2.Row 4: paying is true, so return P3
    3. 3.Row 3: high, which is false, so skip it
    4. 4.Row 1: outage is false, so skip it

3 question(s) left on this page.