问题 单项选择题

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

答案

参考答案:C

单项选择题 A1型题
单项选择题