CTFL Exam QuestionsBrowse all questions from this exam

CTFL Exam - Question 41


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 Answer
Correct Answer:

Discussion

2 comments
Sign in to comment
keith_09Option: B
Jan 25, 2025

The partition overlap for condition 2 and 3 shouldn’t the answer be The partitions overlap

8114d04Option: B
Apr 17, 2025

The requirements overlap at n = 100