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

BCS Exam CTFL4 Topic 6 Question 21 Discussion

Actual exam question for BCS's CTFL4 exam
Question #: 21
Topic #: 6
[All CTFL4 Questions]

A financial institution is to implement a system that calculates the interest rates paid on investment accounts based on the sum invested.

You are responsible for testing the system and decide to use equivalence partitioning and boundary value analysis to design test cases. The requirements describe the following expectations:

Investment range | Interest rate

R500 to RIO 000 10%

RIO 001 to R50 000 11%

R50 001 to RlOOOOO 12%

RIOOOOl to R500 000 | 13%

What is the minimum number of test cases required to cover all valid equivalence partitions for calculating the interest?

Show Suggested Answer Hide Answer
Suggested Answer: C

Statement coverage is a metric used in white-box testing that measures the percentage of executable statements in the code that have been executed by the test cases. It is calculated as the number of statements executed by the tests divided by the total number of executable statements in the code, providing an indication of how much of the code has been tested.


Contribute your Thoughts:

Kanisha
1 months ago
Wait, is this a trick question? What if the system can only handle 4 test cases? Then option B is the way to go, right? Unless, of course, the system is bulletproof and can handle all 16 test cases. In that case, I'm going with the option that has the most test cases - D!
upvoted 0 times
Lashaun
3 days ago
That's a good point. Maybe we should consider option D to cover all possibilities.
upvoted 0 times
...
Hui
7 days ago
But what if we miss some important scenarios with only 4 test cases?
upvoted 0 times
...
Tina
28 days ago
I think we should go with option B, just to be safe.
upvoted 0 times
...
...
Refugia
1 months ago
Woah there, slowpoke! You're forgetting about the edge cases. We need to test the absolute minimum and maximum values for each partition, plus a few in the middle. That's 16 test cases, no doubt. D is the way to go.
upvoted 0 times
...
Shawnda
1 months ago
This is a piece of cake! All we need to do is test the midpoint of each partition, so that's 4 test cases. Easy peasy. I'll go with option A.
upvoted 0 times
...
Carmen
2 months ago
I'm not sure, but I think we need to cover each partition with at least one test case, so the answer should be A) 5.
upvoted 0 times
...
Antione
2 months ago
I agree with Susana, because we have 4 valid equivalence partitions and 1 invalid partition.
upvoted 0 times
...
Samira
2 months ago
Hmm, I'm not so sure. With four partitions, we need to test the upper and lower bounds of each one, so that's 8 test cases. Plus, we should probably throw in a few extra cases just to be thorough. I'm going with option C - 8 test cases.
upvoted 0 times
Lilli
16 days ago
I agree, option C - 8 test cases seems like the best choice.
upvoted 0 times
...
Heidy
18 days ago
I think you're right. We do need to test the upper and lower bounds of each partition.
upvoted 0 times
...
...
Jina
2 months ago
Okay, let's think this through. We have four equivalence partitions, so the minimum number of test cases would be four to cover all of them. But we also need to consider the boundary values, so that adds a few more. I'd go with option B - 4 test cases should do the trick.
upvoted 0 times
...
Susana
2 months ago
I think the answer is A) 5.
upvoted 0 times
...

Save Cancel