网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
试题(52)
针对下列程序段,需要(52)个测试用例才可以满足语句覆盖的要求。
(52)
A.2
B.3
C.4
D.5
参考答案
更多 “ 试题(52)针对下列程序段,需要(52)个测试用例才可以满足语句覆盖的要求。(52)A.2B.3C.4D.5 ” 相关考题
考题
针对下列程序段,需要(52)个测试用例才可以满足语句覆盖的要求。 switch(value){ case 0: ther=30; break; case 1: ther=50; break; case 2: ther=300; case 3: ther=other/value; break; default: ther=other * value; }A.2B.3C.4D.5
考题
针对下列程序段,需要______个测试用例才可以满足语句覆盖的要求。Switch(value){Case 0:0ther=30;Break;Case 1:ther=50;Break;Case 2:ther=300;Case 3:ther=other/value;Break;Default:ther=other * value;}A) 2B) 3C) 4D) 5A.B.C.D.
考题
针对下列程序段,需要______个测试用例才可以满足语句覆盖的要求。Switch(value){Case 0:ther=30;Break;Case 1:ther=50;Break;Case 2:ther=300;Case 3:ther=other/value;Break;Default;ther=other*value;}A) 2B) 3C) 4D) 5A.B.C.D.
考题
若采用白盒测试法对下面流程图所示算法进行测试,且要满足语句覆盖,则至少需要(51)个测试用例,若表示输入和输出的测试用例格式为(A,B,X;X),则满足语句覆盖的测试用例是(52)。
A. (1,3,3;8)
B. (1,3,5;10)
C. (5,2,15;8)
D. (5,2,20;9)
考题
若采用白盒测试法对下面流程图所示算法进行测试,且要满足语句覆盖,则至少需要(51)个测试用例,若表示输入和输出的测试用例格式为(A,B,X;X),则满足语句覆盖的测试用例是(52)。
A.1
B.2
C.3
D.4
考题
针对下列程序段,需要( )个测试用例才可以满足语句覆盖的要求。
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
考题
针对下列程序段,需要( )个测试用例可以满足分支覆盖的要求。int IsLeap(int year){if(year%4==0){if((year%100==0){if(year%400==0)leap=1;else leap=0;}else leap=l;}else leap=0;return leap;}A.3
B.4
C.6
D.7
考题
1、针对下列程序段,需要()个测试用例才可以满足语句覆盖的要求。 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.2B.3C.4D.5
热门标签
最新试卷