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

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

如上图所示实例,以下测试用例哪一组能够满足判定覆盖______。

A) (a=2,b=0,x=6)、(a=1,b=0,x=1)

B) (a=2,b=0,x=4)、(a=3,b=0,x=2)

C) (a=2,b=2,x=2)、(a=3,b=0,x=6)

D) (a=2,b=O,x=6)、(a=2,b=0,x=4)

A.

B.

C.

D.


参考答案

更多 “ 如上图所示实例,以下测试用例哪一组能够满足判定覆盖______。A) (a=2,b=0,x=6)、(a=1,b=0,x=1)B) (a=2,b=0,x=4)、(a=3,b=0,x=2)C) (a=2,b=2,x=2)、(a=3,b=0,x=6)D) (a=2,b=O,x=6)、(a=2,b=0,x=4)A.B.C.D. ” 相关考题
考题 有以下程序main(){ int x[3][2]={0},i;for(i=0; i3; i++) scanf("%d",x[i]);printf("%3d%3d%3d\n",x[0][0],x[0][1],x[1][0]);}若运行时输入: 2 4 6 回车 ,则输出结果为A)2 0 0B)2 0 4C)2 4 0D)2 4 6

考题 设k为整型变量,且有以下程序段: if(k0) then if k>5 then if k2 then x:=3 else x:=4 用case语句改写上述程序,执行效果一样的是( )。 Acase k of 1,2:x:=4; 3,4,5:x:=3; 8,9,10:x:=1; 6,7:x:=0 endBcase k of 1:x:=4; 2,3,4,5:x:=3; 8,9,10:x:=1; 6,7:x:=0 endCcase k of 1,2:x:=4; 3,4,5:x:=3; 9,10:x:=1; 6,7,8:x:=0 endDcase k of 1,2,3:x:=4; 4,5:x:=3; 8,9,10:x:=1; 6,7:x:=0 end

考题 如上图所示实例,以下测试用例哪一组能够满足判定条件覆盖______。A) (a=2,b=0,x=6)、(a=1,b=1,x=1)B) (a=8,b=7,x=114)、(a=33,b=50,x=32)C) (a=29,b=20,x=25)、(a=3,b=9,x=36)D) (a=21,b=20,x=62)、(a=22,b=40,x=24)A.B.C.D.

考题 根据程序流程图所示,满足条件覆盖的用例是______。①CASE1:x=1,y=3,z=0 ②CASE2:x=3,y=2,z=1 ③CASE3:x=1,y=2,z=0 ④CASE4:x=1,y=1,z=0A.①②B.②③C.③④D.①④

考题 1 6 .2 月1 6 日,X 公司向Y 公司购人材料一批,价款为2 0 0 0 0 元,增值税税率为l 7 %,付款条 件是2 /1 0 ,N /3 0 。X 公司打算在本月2 5 日前付款,则本月l 6 E 1 ,X 公司应确认的应付账 款为( ) 元。A .2 3 4 0 0B .2 2 9 3 2C .2 0 0 0 0D .2 3 0 0 0

考题 下列程序的输出结果是()。includevoid main(){char*str=”12123434”;int x1=0,x2=0,x 下列程序的输出结果是( )。 #include<iostream.h> void main() {char*str=”12123434”; int x1=0,x2=0,x3=0,x4=0,i; for(i=0;str[i]!=’\0’;i++) switch(str[i]) {case’1’:x4++; case’2’:x3++; case’3’:x2++; case’4’:xl++; ) cout<<xl<<“,”<<x2<<A.8,6,4,1B.8,6,3,2C.8,8,4,lD.8,6,4,2

考题 下列程序的输出结果是( )。includeiostream.hvoidmain() (char*str=12123434iostream.hvoidmain()(char*str=12123434;intx1=0,x2=0,x3=0,x4=0,i;for(i=0;str[i]!=\0;i++)switch(str[i]){case1:x4++;case2:x3++;case3:x2++;case4:x1++;}coutx1,x2:,x3,x4;}A.8,6,4,1B.8,6,3,2C.8,8,4,1D.8,6.4,2

考题 系统中一个程序的结构如图14-7所示:该程序有4条不同路径,分别为L1:a→c→e;L2→a→b→d;L3:a→b→e;L4:a→c→d。小王设计了4组测试用例:①【(1,0,3),(1,0,4)】覆盖abe;【(2,1,1),(2,1,2)】覆盖abe:②【(2,1,1),(2,1,2)】覆盖abe;【(3,0,3),(3,0,1)】覆盖acd;③【(2,0,4),(2,0,3)】覆盖ace;【(1,0,3),(1,0,4)】覆盖abe;【(2,1,1),(2,1,2)】覆盖abe;【(1,1,1),(1,1,1)】覆盖abd;④【(2,0,4),(2,0,3)】覆盖ace;【(1,1,1),(1,1,1)】覆盖abd;【(1,1,2),(1,1,3)】覆盖abe;【(3,0,3),(3,0,1)】覆盖acd;这4组测试用例中(5)属于判定覆盖:(6)属于条件覆盖;(7)属于路径覆盖;(8)属于条件组合覆盖。(注:该题测试用例格式为【(A,B,X)输入,(A, B,X)输出】)。

考题 下面程序显示的结果是( )。 CLEAR STORE O TO X DO WHILE X<6 IFINT(X\2)=(X\2) ?X ENDIF X=X+1 ENDDOA.显示1、3、5B.显示2、4、6C.显示0、2、4、6D.显示0、2、4

考题 解下列不等式,并把它们的解集分别表示在数轴上:(1)5x+125≤0;(2)6-2x>0;(3)-x+1>7x-3;(4)2(1-3x)>3x+20;(5)(2x-1)/2x/2;(6)(1-2x)/3≥(4-3x)/6

考题 下列程序的输出结果是includevoid main( ){char*str="12123434";int xl=0,x2=0,x3= 下列程序的输出结果是 #include<iostream.h> void main( ) {char*str="12123434"; int xl=0,x2=0,x3=0,x4=0,i; for(i=0;str[i]!='\0';i++) switch(str[i]) {case'1':x4++; case'2':x3++; case'3':x2++; case'4':x1++; } cout<<x1<<","<<x2<<","<<x3<<","<<x4; }A.8,6,4,1B.8,6,3,2C.8,8,4,1D.8,6,4,2

考题 用函数的图象求下列方程的解:(1)x²-3x+2=0;(2)-x²-6x-9=0 ;(3)x²+x+2=0; (4)1-x-2x²=0 。

考题 下列程序的输出结果是includevoid main(){char*str="12123434"; int x1=0,x2=0,x3= 下列程序的输出结果是 #include<iostream.h> void main() { char*str="12123434"; int x1=0,x2=0,x3=0,x4=0,i; for(i=0;str[i]!=‘\0’;i++) switch(str[i]) { case'l':x4++; case'2':X3++; case'3':x2++; case'4':X1++; } cout << X1 << " ," << x2 << " ’" << x3 << " ," << X4; }A.8,6,4,1B.8,6,3,2C.8,8,4,1D.8,6,4,2

考题 下列程序的输出结果是includevoid main(){char*str="12123434";int x1=0,x2=0,x3=0 下列程序的输出结果是 #include<iostream.h> void main() {char*str="12123434"; int x1=0,x2=0,x3=0,x4=0,i; for(i=0;str[i]!='\0';i++) switch(str[i]) {case'1':x4++; case'2':X3++; case'3':X2++; case'4':X1++; } cout<<X1<<","<A.8,6,4,1B.8,6,3,2C.8,8,4,1D.8,6,4,2

考题 下列程序的输出结果是 #include void main( ) { char * str="12123434"; int x1=0,x2=0,x3=0,x4=0,i; for(i=0;str[i]!='\0';i++) switch(str[i]) { case'1':x4++; case'2':x3++; case'3':x2++; case'4':x1++; } cout < < x1 < < "," < < x2A.8,6,4,1B.8,6,3,2C.8,8,4,1D.8,6,4,2

考题 曲线y=x4-3在点(1,-2)处的切线方程为()A.2x-y-6=0 B.4x-y-6=0 C.4x-y-2=0 D.2x-y-4=0

考题 过直线3x+2y+1=0与2x-3y+5=0的交点,且垂直于直线L:6x-2y+5=0的直线方程是(  )A.x-3y-2=0 B.x+3y-2=0 C.x-3y+2=0 D.x+3y+2=0

考题 方程组的解为( )。A、x1=-18,x2=0,x3=0 B、x1=0,x2=0,x3=3 C、x1=2,x2=1,x3=3 D、x1=0,x2=6,x3=0

考题 过(1,1,-1),(-2,-2,2),(1,-1,2)三点的平面方程是( )。 A.x+3y-2z-6=0 B.x+3y-2z=0 C.x-3y-2z-6=0 D.x-3y-2z=0

考题 过点A(1,1,-1),B(-2,-2,2)和C(1,-1,2)三点的平面方程为()。A、x-3y-2z=0B、x+3y-2z-6=0C、x-3y+2z+4=0D、x+3y+2z-2=0

考题 int x=0  step1   for(; x  11 ; x++) {   if(x = = 6) {   x= 8   break step1;   }   if( x = = 3 ) {   x+ +   continue   }   System.out.print(x +“ ”);   }   结果为:()  A、0 1 2B、0 1 2 5C、0 1 2 4 5D、0 1 2 5 8 9 10E、0 1 2 5 8 9 10 11

考题 maxZ=3x1+x2,4x1+3x2≤7,x1+2x2≤4,x1,x2=0或1,最优解是()A、(0,0)B、(0,1)C、(1,0)D、(1,1)

考题 以下创建数组的方式错误的是()A、shortx[];x={1,2,3,4,5,6};B、shortx[]=newshort[6];x[0]=9;x[1]=8;x[2]=7;x[3]=6;x[4]=5;x[5]=4;C、shortx[]=newshort[6];intlen=x.length;for(inti=0;iD、short[][]x={{1,2},{3,4,5},{6,7,8,9}};

考题 单选题有以下程序#include main(){ int x[3][2]={0},i; for(i=0;i printf("%3d%3d%3d",x[0][0],x[0][1],x[1][0]);}若运行时输入:2 4 6,则输出结果为(  )。A 2 0 4B 2 0 0C 2 4 0D 2 4 6

考题 单选题maxZ=3x1+x2,4x1+3x2≤7,x1+2x2≤4,x1,x2=0或1,最优解是()A (0,0)B (0,1)C (1,0)D (1,1)

考题 单选题以下创建数组的方式错误的是()A shortx[];x={1,2,3,4,5,6};B shortx[]=newshort[6];x[0]=9;x[1]=8;x[2]=7;x[3]=6;x[4]=5;x[5]=4;C shortx[]=newshort[6];intlen=x.length;for(inti=0;i D short[][]x={{1,2},{3,4,5},{6,7,8,9}};

考题 单选题int x=0  step1   for(; x  11 ; x++) {   if(x = = 6) {   x= 8   break step1;   }   if( x = = 3 ) {   x+ +   continue   }   System.out.print(x +“ ”);   }   结果为:()A 0 1 2B 0 1 2 5C 0 1 2 4 5D 0 1 2 5 8 9 10E 0 1 2 5 8 9 10 11