Search: "defect report"
Sample Exam Questions
Back to results
CTAL-TA LO: TA-5.2.1 2 questions
Learning Objective: Use a model of the test object to detect defects in a specification
Download PDFs:
Q39
K3 TA-5.2.1

For a system that allocates discounts on purchases, the following two business rules apply:

- Customers with a loyalty card or whose last purchase was at least $1,000 will receive a 10% discount. Otherwise, they will receive a 5% discount if they subscribe to the newsletter.

- If a customer has not signed up for the newsletter, they will receive no discount.

The requirements are modeled using the following decision table:

Conditions
Rule 1
Rule 2 Rule 3 Rule 4
Has a loyalty card? YES - NO -
Last purchase >= $1000? - YES NO -
Subscribed to the newsletter? - - YES NO
Action
Discount 10% 10% 5% 0%

What problem (if any) with the requirements can you discover by analyzing this decision table?

Select ONE option.

  • A.

    Inconsistency – there is at least one feasible combination of conditions for which the specification describes two contradicting actions

  • B.

    Incompleteness – there is at least one feasible combination of conditions for which the specification predicts no behavior at all

  • C.

    Overlapping rules – there are at least two action-equivalent columns that match the same combination of conditions

  • D.

    There is no problem – the decision table models the requirements correctly, and there are no anomalies in the requirements

Q40
K3 TA-5.2.1

You are reviewing the requirements specification of a beverage vending machine. You are focusing on the coin controller that collects, validates, and counts the inserted coins. You notice the following requirements related to the behavior of the coin controller:

- Req201: For each ordering transaction, the coin controller distinguishes the situations among modes empty, partially inserted, and sufficient to identify whether the user has paid enough to start the beverage delivery

- Req215: If the user has paid enough, the controller shall immediately return any further inserted coins.

- Req235: The coin controller shall validate the inserted coins and immediately return invalid coins with an appropriate error message.

- Req236: The coin controller changes its mode to sufficient as soon as the user inserts enough coins.

- Req237: The user shall be able to cancel the transaction before beverage delivery and get the inserted coins returned. The coin controller will be empty after cancel is selected.

- Req243: The coin controller shall display an appropriate message when the user has inserted enough coins for payment and sum up any further coins inserted.

- Req253: When the user inserts a coin with which the required amount is not reached, the coin controller shall remain in the partially inserted mode and add the value of the inserted coin to the intermediate value paid.

- Req267: If the coin controller is in sufficient mode and the user triggers the delivery, it shall deliver the beverage to the user.

You decided to model the behavior of the coin controller with a state machine diagram. Which of the following anomalies will be MOST LIKELY detected by the modeling?

Select ONE option.

  • A.

    It is not clear which event will trigger the coin controller to switch from the partially inserted mode to the sufficient mode

  • B.

    The specification is ambiguous when the coin controller is in the partially inserted mode. The same event triggers returning the coins and delivering the beverage

  • C.

    The specification is incomplete because there is no event defined for returning an invalid coin

  • D.

    The specification is ambiguous in the sufficient mode. The same event is supposed to trigger two competing outcomes, i.e., summing up the coins and immediately returning the coins

Share Your Feedback

How is your experience with TBoK?