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

Posted by Reena on May 09, 2022 at 01:11 PM

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?

Suggested Answer: A

Get Premium CTAL Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
8 comments · newest first
TE
Telma 1 year ago
I disagree, 4 seems more accurate to cover all paths.
IL
Ilene 1 year ago
Definitely 2, one for each branch.
LI
Lillian 1 year ago
Wait, is it really that low? I thought it was more!
KE
Kendra 1 year ago
I think it's actually 3.
BR
Brandon 1 year ago
You need at least 2 test cases for branch coverage.
CA
Carey 1 year 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.
PA
Paris 1 year 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.
JO
Jordan 1 year 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?
0/2000 characters

Save Cancel