How many test cases would be needed to achieve 100% decision coverage?
Number of correct answers: 1
Answer : A
Consider the following code fragment
If (a>b) and (b>c) then
b = (a+c)/2
endif
Assume that in the following options, each of the three numbers in parenthesis represent the inputs for a test case, where the first number represents variable ''a'', the second number represents variable ''b'', and the third number represents variable ''c''.
Which of the following gives a set of test case inputs that achieves 100% decision coverage for this fragment of code with the minimum number of test cases?
Number of correct answers: 1
Answer : C
The developers have suggested test set A is adequate to test the program opposite:
When executing test set A through the program which statements are exercised?
Number of correct answers: 1
Answer : D
Which specification-based technique could be used to enhance coverage for this code fragment?
Number of correct answers: 1
Answer : A
An embedded software company is considering to improve the quality of its software components to be delivered to the integration team. After studying various experience papers that report a higher level of quality for software components, two main alternative techniques are identified: static analysis and dynamic analysis. In deciding which one is most applicable and how they relate to each other a detailed study is performed. Which of the following are TWO key similarities between static analysis and dynamic analysis?
Number of correct answers: 2
Answer : C, E
Definition-use pairs are identified during which of the following static analysis activities?
Number of correct answers: 1
Answer : B
What is the number of nested levels for the code fragment?
Number of correct answers: 1
Answer : C