CTFL_SYLL_4.0 · Question #11
For each of the test cases to be executed, the following table specifies the priority order and dependencies on other test cases. Which of the following test execution schedules is compatible with…
The correct answer is A. TC4, TC3, TC2, TC6, TC5, TC1. Option A is correct because TC4, TC3, TC2, TC6, TC5, TC1 satisfies all dependency constraints (each test case only runs after the test cases it depends on have completed) while also respecting priority order as closely as those constraints allow - TC4 must anchor the sequence…
Question
For each of the test cases to be executed, the following table specifies the priority order and dependencies on other test cases. Which of the following test execution schedules is compatible with the logical dependencies and allows executing the test cases in priority order?
Exhibit
Options
- ATC4, TC3, TC2, TC6, TC5, TC1
- BTC4, TC6, TC3, TC2, TC5, TC1
- CTC3, TC5, TC6, TC1, TC4, TC3
- DTC4, TC3, TC2, TC6, TC1, TC5
How the community answered
(35 responses)- A66% (23)
- B20% (7)
- C6% (2)
- D9% (3)
Explanation
Option A is correct because TC4, TC3, TC2, TC6, TC5, TC1 satisfies all dependency constraints (each test case only runs after the test cases it depends on have completed) while also respecting priority order as closely as those constraints allow - TC4 must anchor the sequence since it has no dependencies and others depend on it.
Why the distractors fail:
- B is invalid because TC6 is scheduled before TC3, but TC6 depends on TC3 - a direct dependency violation.
- C is invalid on two counts: TC3 appears twice (a schedule cannot repeat a test case), and TC3 is listed before TC4 despite depending on it.
- D places TC1 before TC5, but TC1 has a dependency on TC5 - so TC5 must complete before TC1 can run, which D violates.
Memory tip: Think of dependencies as a prerequisite chain - draw arrows from each test case to the ones it depends on, then trace a topological sort. Any answer that runs a test case before something it points to is automatically wrong. Among valid topological orderings, the one that runs higher-priority tests earliest (within the constraint) is the correct schedule.
Topics
Community Discussion
No community discussion yet for this question.
