网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

针对下列程序段,需要______个测试用例才可以满足语句覆盖的要求。

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) 2

B) 3

C) 4

D) 5

A.

B.

C.

D.


参考答案

更多 “ 针对下列程序段,需要______个测试用例才可以满足语句覆盖的要求。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. ” 相关考题
考题 针对下列程序段,需要(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

考题 针对下列程序段,需要(58)个测试用例可以满足分支覆盖的要求。 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.3B.4C.6D.7

考题 试题(52)针对下列程序段,需要(52)个测试用例才可以满足语句覆盖的要求。(52)A.2B.3C.4D.5

考题 针对下列程序段,需要______个测试用例才可以满足语句覆盖的要求。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.

考题 ● 针对下列程序段,需要(58)个测试用例可以满足分支覆盖的要求。int IsLeap(int year){if ( year % 4 == 0 ){if ( ( year % 100 == 0 ){if ( year % 400 == 0 )leap = 1;elseleap = 0;}elseleap = 1;}elseleap = 0;return leap;}(58)A.3B.4C.6D.7

考题 针对下列程序段,需要( )个测试用例才可以满足语句覆盖的要求。 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

考题 针对下列程序段,需要( )个测试用例才可以满足语句覆盖的要求。 A.2 B.3 C.4 D.5

考题 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