CertyRush
Đang tải...
C CertyRush
Câu hỏi free preview

Câu 19: CTFL-V4-0: Certified Tester Foundation Level (CTFL) v4.0

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 issuedWhich of the followin…

Nội dung câu hỏi

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 issuedWhich of the following statements about the equivalence partitions is CORRECT?

Các lựa chọn

Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.

  1. A. There are 3 partitions - one for negative numbers, one for numbers up to 100 and the last one for numbers up to 200
  2. B. The requirements are not correct because the partitions are overlapping — đáp án hiện tại
  3. C. The equivalence partitions cannot be determined for this question because the error message for two partitions is exactly same
  4. D. The equivalence partitions cannot be determined for this question because factorial of numbers close to 200 will be very large

Cộng đồng

0 bình luận công khai. Tên thành viên được ẩn một phần.

Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.

Câu hỏi liền kề