BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - 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

Posted by Elin on Jan 23, 2026 at 06:39 AM

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?

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.


Get Premium CTFL_Syll_4.0 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
27 comments · newest first
VE
Venita 4 months ago
But n > 100 should also show an error. It's straightforward.
DO
Dottie 5 months ago
For 0 < n < 100, it should compute the factorial. That's valid.
RE
Reena 5 months ago
Agreed, n < 0 is definitely out of range.
JE
Jeannine 5 months ago
I think the partitions are clear. Negative numbers should trigger an error.
FI
Filiberto 5 months ago
Seems weird that 100 < n < 200 is also out of range.
ER
Ernest 7 months ago
I thought factorials were only for positive integers?
HO
Hollis 7 months ago
What about n = 0? Does it return 1?
CA
Carol 7 months ago
Totally agree, that makes sense!
VE
Veronika 7 months ago
n < 0 should return "Value out of range."
GE
Gearldine 7 months ago
The question is well-designed, but I'm curious about the practical applications of this type of program.
DE
Deonna 7 months ago
Haha, I wonder if the program can handle factorials of over 200! That would be a real challenge.
KA
Karma 8 months ago
The range for the factorial calculation seems a bit arbitrary. I wonder if there's a deeper reason behind it.
AL
Alonzo 8 months ago
I think the question is testing our understanding of edge cases and error handling.
LA
Latia 8 months ago
The partitions make sense, but I'm curious about the reasoning behind the specific ranges.
HO
Howard 8 months ago
The question seems straightforward, but I'm not sure about the range for the factorial calculation.
AN
An 8 months ago
I feel like I might be mixing up the ranges. Is 0 included in the valid partition or not?
EL
Elden 8 months ago
I practiced a similar question where we had to identify valid and invalid ranges. I think we need to focus on the boundaries here.
SU
Susana 9 months ago
I'm not entirely sure, but I remember something about how we can group inputs that should produce the same output.
YO
Youlanda 9 months ago
I think the equivalence partitions would be the ranges for n, like negative numbers, 0 to 99, and 100 to 199.
HE
Herschel 10 months 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.
KA
Kati 10 months 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.
AL
Alyce 10 months 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.
MI
Milly 10 months 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?
WE
Wendell 10 months 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.
JU
Judy 4 months ago
↳ replying to Wendell
Exactly! Each range needs testing for accuracy.
GE
Geraldine 4 months ago
↳ replying to Wendell
Yeah, negative numbers, valid range, and too high.
JA
Jannette 4 months ago
↳ replying to Wendell
I think we have three partitions here.
0/2000 characters

Save Cancel