针对下列程序段,需要______个测试用例才可以满足语句覆盖的要求。
Switch(value)
Case 0:
Other=30;
Break;
Case 1:
Other=50;
Break;
Case 2:
Other=300;
Case 3:
Other=other/value;
Break;
Default:
Other=other*value;
题库:计算机等级考试
类型:最佳选择题
时间:2017-07-03 14:02:08
免费下载:《简单单选》Word试卷
针对下列程序段,需要______个测试用例才可以满足语句覆盖的要求。
Switch(value)
Case 0:
Other=30;
Break;
Case 1:
Other=50;
Break;
Case 2:
Other=300;
Case 3:
Other=other/value;
Break;
Default:
Other=other*value;
A.2
B.3
C.4
D.5
本题关键词:满足需要,满足需要原则,使用要求,需要,需要量,需要型,覆盆盖,爱归属的需要,尊重需要,安全需要;