A storage system can store up to three elements and is modeled by the following state transition diagram. The variable N represents the number of currently stored elements. Which of the following test cases, represented as sequences of events, achieves the highest level of valid transitions coverage?

State transition diagram modeling a 3-element storage system with NOT FULL and FULL states, showing add/remove operations and N variable changes

Các đáp án

A.Add, Remove, Add, Add, Add
B.Add, Add, Add, Add, Remove, Remove
C.Add, Add, Add, Remove, Remove
D.Add, Add, Add, Remove, Add

Đáp án đúng

C: Add, Add, Add, Remove, Remove

Câu hỏi khác trong đề thi này