New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

iSQI CTFL_Syll_4.0 Exam - Topic 2 Question 47 Discussion

Actual exam question for iSQI's CTFL_Syll_4.0 exam
Question #: 47
Topic #: 2
[All CTFL_Syll_4.0 Questions]

Consider a program that computes the factorial of a number (n). From the specifications you know that:

* If n < 0, a message "Value out of range" must be issued.

* If 0 < n < 100, the program calculates the factorial and returns the number

* If 100 < n < 200 message "Value out of range" must be issued

Which of the following statements about the equivalence partitions is CORRECT?

Show Suggested Answer Hide Answer
Suggested Answer: C

Equivalence partitioning involves dividing input data into partitions that are treated the same by the system under test. The given specifications create overlapping partitions:

For n<0n < 0n<0, an error message 'Value out of range' is issued.

For 0<n<1000 < n < 1000<n<100, the factorial is calculated.

For 100<n<200100 < n < 200100<n<200, the same error message 'Value out of range' is issued.

However, the range between 0 and 100 is exclusive of 0 and 100, meaning that the partitions overlap and create ambiguity for the boundary values. Thus, the correct statement is that the requirements are not correct because the partitions are overlapping.


Contribute your Thoughts:

0/2000 characters
Susana
5 days ago
I'm not entirely sure, but I remember something about how we can group inputs that should produce the same output.
upvoted 0 times
...
Youlanda
10 days ago
I think the equivalence partitions would be the ranges for n, like negative numbers, 0 to 99, and 100 to 199.
upvoted 0 times
...
Herschel
15 days ago
This seems straightforward. The correct statement is likely the one that accurately describes the three partitions specified in the problem. I'll read through the options carefully and select the one that matches the given conditions.
upvoted 0 times
...
Kati
21 days ago
Wait, what's an equivalence partition again? I remember learning about that, but I'm drawing a blank. Maybe I should review my notes quickly before attempting this.
upvoted 0 times
...
Alyce
26 days ago
I've got this! The key is to identify the three partitions: n < 0, 0 < n < 100, and 100 < n < 200. Then I can explain which one is the correct statement about the equivalence partitions.
upvoted 0 times
...
Milly
1 month ago
Hmm, I'm a bit confused about the exact ranges here. Do I need to check for 0 specifically, or is that covered in the 0 < n < 100 range?
upvoted 0 times
...
Wendell
1 month ago
Okay, this looks like a classic question on partitioning the input domain. I'll need to identify the different ranges and think about how to test each one.
upvoted 0 times
...

Save Cancel