...
Indexing
August 26, 2024
Software-testing
August 26, 2024
Indexing
August 26, 2024
Software-testing
August 26, 2024

Software-testing

Question 38
The following program is to be tested for statement coverage:
begin
if(a==b)
{
S1;
exit;
}
else if (c==d)
{
S2;
}
else
{
S3;
Exit;
}
S4;
end
The test cases T1,T2,T3 and T4 given below are expressed in terms of the properties
satisfied by the values of variables a,b,c and d. The exact values are not given
T1:a,b,c and d are all equal
T1:a,b,c and d are all distinct
T3:a=b and c!=d
T4:a!b and c=d
Which of the test suites given below ensures coverage of statements S1,S2,S3 and S4?
A
T1,T2,T3
B
T2,T4
C
T3,T4
D
T1,T2,T4
Question 38 Explanation: 
The test cases T1 covers S1 ,T2 covers S3 and T4 covers S2, S4.
Correct Answer: D
Question 38 Explanation: 
The test cases T1 covers S1 ,T2 covers S3 and T4 covers S2, S4.
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!