0
0
Testing Fundamentalstesting~20 mins

Decision table testing in Testing Fundamentals - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Decision Table Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Understanding Decision Table Conditions

In decision table testing, what does each condition in the table represent?

AA user interface element
BA possible input or state that affects the system's behavior
CA bug found during testing
DA test case that must be executed
Attempts:
2 left
💡 Hint

Think about what influences the decisions in the system.

Predict Output
intermediate
1:30remaining
Output of Decision Table Test Case Count

Given a decision table with 3 conditions each having 2 possible values (True/False), how many unique test cases does the table represent?

A8
B6
C9
D12
Attempts:
2 left
💡 Hint

Calculate the total combinations of all conditions.

assertion
advanced
2:00remaining
Correct Assertion for Decision Table Coverage

Which assertion correctly verifies that all decision table rules have been tested?

Testing Fundamentals
tested_rules = {1, 2, 3, 4}
all_rules = {1, 2, 3, 4}
# Which assertion below is correct?
Aassert tested_rules == all_rules
Bassert tested_rules != all_rules
Cassert tested_rules < all_rules
Dassert tested_rules > all_rules
Attempts:
2 left
💡 Hint

Think about what it means to have tested all rules.

🔧 Debug
advanced
2:00remaining
Identify the Error in Decision Table Test Code

What error will this Python code raise when checking decision table rules coverage?

Testing Fundamentals
all_rules = {1, 2, 3, 4}
tested_rules = [1, 2, 3, 4]
assert tested_rules == all_rules
ATypeError: unsupported operand type(s) for ==: 'list' and 'set'
BNo error, assertion passes
CAssertionError
DTypeError: unhashable type: 'list'
Attempts:
2 left
💡 Hint

Check the types of variables compared.

framework
expert
2:30remaining
Best Practice for Automating Decision Table Tests

Which approach best automates testing all rules in a decision table using a test framework?

AUse random inputs in a single test function without mapping to rules
BWrite separate test functions manually for each rule without loops
CTest only the most common rule and skip others
DWrite one test function with a loop that iterates over all rule inputs and asserts expected outputs
Attempts:
2 left
💡 Hint

Think about maintainability and coverage.