106k views
5 votes
You are testing an e-commerce transaction that has the following states and transitions:

1. Login (invalid) -> Login
2. Login -> Search
3. Search -> Search
4. Search -> Shopping Cart
5. Shopping Cart -> Search
6. Shopping Cart -> Checkout
7. Checkout -> Search
8. Checkout -> Logout
For a state transition diagram, how many transitions should be shown?
A. 4
B. 6
C. 8
D. 16

User Bertolt
by
7.9k points

1 Answer

2 votes

Final answer:

The e-commerce transaction diagram should show 8 transitions.

Step-by-step explanation:

The state transition diagram for the e-commerce transaction has 8 states and 8 transitions. Each of the 8 states represents a different step in the transaction process, and each transition represents a change from one state to another.

In the given diagram, there are 8 arrows connecting the states, which represent the 8 transitions. These transitions show how the system can move from one state to another based on user actions or system events.

Therefore, the correct answer is C. 8 transitions should be shown on the state transition diagram.

User Eran Goldin
by
7.2k points