Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

ASTQB CTAL Exam - Topic 3 Question 18 Discussion

Actual exam question for ASTQB's CTAL exam
Question #: 18
Topic #: 3
[All CTAL Questions]

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 to test branch / decision coverage?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Telma
5 months ago
I disagree, 4 seems more accurate to cover all paths.
upvoted 0 times
...
Ilene
5 months ago
Definitely 2, one for each branch.
upvoted 0 times
...
Lillian
5 months ago
Wait, is it really that low? I thought it was more!
upvoted 0 times
...
Kendra
5 months ago
I think it's actually 3.
upvoted 0 times
...
Brandon
5 months ago
You need at least 2 test cases for branch coverage.
upvoted 0 times
...
Carey
6 months ago
I feel pretty confident that option C is the way to go here. Reviewing the market and looking for an alternative supplier is the prudent first move in this situation.
upvoted 0 times
...
Paris
6 months ago
Okay, I think I've got this. I'll focus on identifying if the investment comprises more than 15% of the voting shares or more than 35% of the equity.
upvoted 0 times
...
Jordan
6 months ago
I'm not totally sure about this one. There are a few different approaches that could work, but I think I'd go with option C. Deploying a new instance group to canary the updated template feels like the safest way to verify the new feature without risking the whole production environment. Gotta play it safe, you know?
upvoted 0 times
...

Save Cancel