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:

Carmen
2 days 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
4 days ago
I agree with Susana, because we have 4 valid equivalence partitions and 1 invalid partition.
upvoted 0 times
...
Samira
4 days 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
...
Jina
5 days 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
10 days ago
I think the answer is A) 5.
upvoted 0 times
...

Save Cancel