volume_mute

Sequence Testing Guidelines

publish date2026/06/18 03:41:34.286645 UTC

volume_mute

Which of the following are recommended guidelines for testing programs that process sequences, arrays, or lists? Select all that apply.

Correct Answer

(1) Test with sequences that have only a single value
(2) Use different sequences of different sizes in different tests
(3) Derive tests so that the first, middle, and last elements of the sequence are accessed

Explanation

The three recommended guidelines for sequence testing are: (1) test with single-value sequences to expose assumptions; (2) use different sequence sizes to reduce accidental correct outputs from defective code; (3) access first, middle, and last elements to reveal problems at partition boundaries.

Reference

Software Engineering, Ian Sommerville, 10th edition


Quizzes you can take where this question appears