知识检查 2-2:等价类划分测试 Knowledge Check: Equivalence Partitioning Testing

  • Due Oct 27 at 11:59pm
  • Points 3
  • Questions 3
  • Time Limit None
  • Allowed Attempts Unlimited

Attempt History

Attempt Time Score
LATEST Attempt 1 153 minutes 3 out of 3
Submitted Oct 31 at 8:42am
 
Question 1
1 / 1 pts
0 multiple_choice_question    

正确还是错误?等价类划分是在具有多个独立的输入时采用的良好技术。

True or False?

Equivalence partitioning is a good technique to utilize when there are multiple independent inputs.

 
exact_answer none 20827842 70766
Correct!
 
exact_answer none 20827842 73548
等价类划分必须应用于独立的输入。在本课程的 abs(x) 示例中,必须测试负值、0 和正值,它们都是独立的输入。Equivalence partitioning must be applied with independent inputs. In the lecture example of abs(x), it is necessary to test a negative value, 0, and a positive value which are all independent inputs.
 
Question 2
1 / 1 pts
0 multiple_choice_question    

哪一项不是等价类划分步骤

What is NOT an equivalence partitioning step?

 
exact_answer none 20827843 50312
 
exact_answer none 20827843 99187
 
exact_answer none 20827843 86920
Correct!
 
exact_answer none 20827843 52336
一次只能有一个测试用例去覆盖每个未覆盖的无效等价类。因为等价类划分用于黑盒测试过程,因此如果测试了多个无效类,则无法判断哪个无效类导致了错误。There must only be one test case that covers each uncovered invalid equivalence partition at a time. Since equivalence partitioning is used during black box testing, if there are multiple invalid partitions tested, it is not known which invalid partition caused the error.
 
Question 3
1 / 1 pts
0 multiple_choice_question   39783176

测试一个密码长度必须介于 6-8 个字符之间的密码程序,一组良好的等价类是什么?

What are a good set of equivalence partitions for a password testing program where a password must be between 6-8 characters?

 
exact_answer none 20827844 23672
 
exact_answer none 20827844 79681
 
exact_answer none 20827844 32978
Correct!
 
exact_answer none 20827844 63375

这些等价类测试所有可能的输入,可能是密码:密码长度介于 6-8 个字符之间的有效密码,密码< 6 个字符和 > 8 个字符的都是无效密码。

These equivalence partitions test all the possible inputs there could be for a password: a valid password between 6-8 characters, an invalid password with < 6 characters, and an invalid password with > 8 characters.