Всего на сайте:
148 тыс. 196 статей

Главная | Изучение языков

Question 17 K4. One of the test goals for your project is to have 100% decision cover..  Просмотрен 109


One of the test goals for your project is to have 100% decision coverage. The following three tests have been executed for the control flow graph shown below.

Test A covers path: A, B, D, E, G
Test B covers path: A, B, D, E, F, G
Test C covers path: A, C, F, C, F, C, F, G



Which of the following statements related to the decision coverage goal is TRUE?

Answer Set:

A Decision D has not been tested completely.
B 100% decision coverage has been achieved.
C Decision E has not been tested completely.
D Decision F has not been tested completely.

Justification:

In the diagram there are following four conditions: A, D, E. F
The test A covers A->B, D->E and E->G
The test B covers A->B, D->E, E->F and F->G
The test C covers A->C, F->C and F->G.
Hence condition A is covered (A->B and A->C), condition E is covered (E->G and E->F), condition F is covered (F->C and F->G). Condition D is not covered, there is only D->E and D->F is not covered.
Hence

  1. CORRECT
  2. WRONG
  3. WRONG
  4. WRONG

 

Предыдущая статья:Justification. WRONG. System testing does not test interfaces between components and.. Следующая статья:Question 19 K3. Which of the following statements about the given state transition di..
page speed (0.0836 sec, direct)