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 19 Discussion

Posted by Rikki on May 08, 2022 at 01:35 AM

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?

Suggested Answer: B

Get Premium CTAL Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
9 comments · newest first
EM
Emiko 1 year ago
I thought it was 4 at first, but now I'm not so sure!
AV
Avery 1 year ago
Definitely 2, just to hit all the statements.
BO
Bok 1 year ago
Wait, are we sure about that? Seems like we might need more.
OR
Ora 1 year ago
I think 3 test cases should do it.
SH
Shantay 1 year ago
Gotta cover both branches for the first if and the second if.
JE
Jestine 1 year ago
Ah, I think I see the issue. The namespace prefixes in lines 5 and 8 don't match the variable names. Correcting those should do the trick.
TI
Timothy 1 year ago
The loadbalancing mode is definitely specified at the virtual server level, so I'm going to choose option C.
RE
Reuben 1 year ago
This is a tricky one. I'm not sure if any of the options are quite right. Maybe we need to assign the same attribute value for the CUSTOMER_CONTACT_ID field instead? That could be a way to ensure each customer only sees their own orders. I'll have to double-check option D.
LU
Lucy 1 year ago
I think the centralized nature results in inter-application dependencies, making it tough to scale independently. Sounds familiar from our case studies.
0/2000 characters

Save Cancel