ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 46 - CTAL discussion

Report
Export

Use the following code;

x=1

y=2

z=3

If (x = = 2)

{

print "Hi There !";

}

else

{

print "Good bye";

}

z=x + y;

if (z ==4)

{

print "Welcome Back!";

}

else

{

print "Thank you";

}

How many test cases, at minimum, are required for statement coverage?

A.
4
Answers
A.
4
B.
2
Answers
B.
2
C.
3
Answers
C.
3
D.
8
Answers
D.
8
Suggested answer: B
asked 18/09/2024
shikeba barakzei
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first