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

Actual exam question for ASTQB's CTAL exam
Question #: 19
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 for statement coverage?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

0/2000 characters
Emiko
5 months ago
I thought it was 4 at first, but now I'm not so sure!
upvoted 0 times
...
Avery
5 months ago
Definitely 2, just to hit all the statements.
upvoted 0 times
...
Bok
5 months ago
Wait, are we sure about that? Seems like we might need more.
upvoted 0 times
...
Ora
5 months ago
I think 3 test cases should do it.
upvoted 0 times
...
Shantay
5 months ago
Gotta cover both branches for the first if and the second if.
upvoted 0 times
...
Jestine
6 months 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.
upvoted 0 times
...
Timothy
6 months ago
The loadbalancing mode is definitely specified at the virtual server level, so I'm going to choose option C.
upvoted 0 times
...
Reuben
6 months 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.
upvoted 0 times
...
Lucy
6 months ago
I think the centralized nature results in inter-application dependencies, making it tough to scale independently. Sounds familiar from our case studies.
upvoted 0 times
...

Save Cancel