阅读下面程序,下列选项中,能够完成语句覆盖的测试用例是() if((x4)||(z7)) { k=x*y-1; j=sqrt(k); } if((x==8)(y5)) { j=x%y+2; } j=j%3;A、x=2,y=6,z=5B、x=6,y=6,z=5C、x=8,y=6,z=4D、x=8,y=5,z=5

阅读下面程序,下列选项中,能够完成语句覆盖的测试用例是() if((x>4)||(z<7)) { k=x*y-1; j=sqrt(k); } if((x==8)&&(y>5)) { j=x%y+2; } j=j%3;

  • A、x=2,y=6,z=5
  • B、x=6,y=6,z=5
  • C、x=8,y=6,z=4
  • D、x=8,y=5,z=5

相关考题:

运行如下程序段:x=1y=1z=1For j=1To 3For k=1 To 3If j=1 Thenx=x +y+zElself j=2 Thenx=2*x+2*y+2*zElsex=3*x+3*y+3*zEnd IfNext kNext jx的值应是【 】。

化简下列各式:(1)5x4+3x2y-10-3x2+x-1;(2)p²+3pq+6-8p²+pq ;(3)(7y-3z)-(8y-5z);(4)-(a5-6b)-(-7+3b)(5)2(2a²+9b)+3(-5a²-4b);(6)-3(2x²-xy)+4(x²+xy-6).

( 6 )有如下程序段:int x=1,Y=2,z=3;x=x^z;y=y^z;z=x^y;coutxyz;执行这个程序段的输出是【 6 】 。

下列程序段的执行结果是( )。x = 3 : y = 5 : z = 9x = x + yy = x - yIf x - y >z - x Then z = x + yIf x + y >z - y Then x = z + yPrint x, y, zA、 3 5 9B、 14 3 11C、 8 3 11D、 8 5 9

已知x=5,y=2,z=6。表达式x>y And z>x Or xy的值是()。A.FalseB.TrueC.1D.0 已知x=5,y=2,z=6。表达式x>y And z>x Or x<y And Not z>y的值是( )。A.FalseB.TrueC.1D.0

运行如下程序段:x=1y=1Z=1For j=1 To 3For k=1 TO 3If j=1 Thenx=x+y+2ElseIf j=2 Thenx=2*x+2*y+2*zElsex=3*x+3*y+3*ZEnd IfNext kNext jx的值应是【 】。

单击按钮时,以下程序运行后的输出结果是 Private Sub proc1(x As Integer,y As Integer,z As Integer) x=3*z y=2*z z=x+y End Sub Private Sub Command1_Click() Dim x As Integer,y As Integer,Z As Integer x=1:y=2:z=3 Call proc1(x,x,z) Print x;x;z Call proc1(x,y,y) Print x;y;y End SubA.6 6 12 `B.9 5 10 6101051010C.9 6 12D.9 10 10 910155410

下列程序的输出结果是( )。 include main() { struct st { int y,x,z; }; union {long 下列程序的输出结果是( )。 #include <stdio.h> main() { struct st { int y,x,z; }; union { long i; int j; char k; } un; printf("%d,%d\n",sizeof(struct st),sizeof(un)); }A.6, 2B.6, 4C.8, 4D.8, 6

设x、y和z是int型变量,且x=4,y=6,z=8,则下列表达式中值为0的是()。A.xyB.x 设x、y和z是int型变量,且x=4,y=6,z=8,则下列表达式中值为0的是( )。A.xyB.x<=yC.x‖y+zy-zD.!((x<y)!z‖1)

运行如下程序段:x=1y=1z=1For j=1 To 3Fork=1 To 3If j=1 Thenx=x+y+zElseIf j=2 Thenx=2*x+2*y+2*ZElsex=3*x+3*y+3*ZEnd IfNext kNext jx的值应是【 】

运行如下程序段:K=ly=1z=1For j=1 To?For k=1 To 3If j=1 Thenx=x + y +zElse If j=2Thenx=2*x+2*y+2*zE1sex=3*x+3*y+3*zEnd IfNext kNext jx的值应是【 】

执行下面的程序后,输出的结果是 K=1 For j=1 To 4 X=X - 1: y=0 For k=1 To 4 X=X + 1: y=y + 1 Next k Next j Print X;yA.1 4B.13 4C.12 8D.20 6

下面程序的输出结果是( )。 #include "stdio.h" fun (x int x { int y=0; static int z=5; z=x++,y++; return(Z); } main() { int a=4,i,j; for(i=0;i<2;i++) j=fun(a++); printf("%d",j); }A.0B.3C.4D.5

若有定义:intx,y,z;语句x=(y=z=3,++y,z+=y);运行后x的值为()。A.6B.7C.8D.3

有一段程序如下,请设计测试用例以满足语句覆盖要求。 void DoWork (int x,int y,int z) { int k=0,j=0; if ( (x>3) } //语句块2 j=j%3; //语句块3 }

设x、y和z是int型变量,且x=4,y=6,z=8,则下列表达式中值为0的是( )。A.x&&y B.x 设x、y和z是int型变量,且x=4,y=6,z=8,则下列表达式中值为0的是( )。A.x&&yB.x<=yC.x||y+z&&y-zD.!((x<y)&&!z||1)

下面程序执行的结果是( )。 CLEAR X=5 Y=6 Z=7 IF X>Y IF Z>8 X=X+Y ELSE X=X+Z ENDIF ENDIF ?XA.5B.11C.12D.13

以下程序运行后,单击按钮输出结果是 Private Sub Commandl_Click( ) Dim x As Integer,y As Integer,z As Integer X=4:y=2: Z=3 Call Gopd(x,x,z) Print x;X;Z Call Gopd(x,y,y) Print x;y;y End Sub Private Sub Gopd(x As Integer,y As Integer,z As Integer) X=3 * Z + 1 y=2 * z z=x + y End SubA.6 6 12 7 11 11B.8 5 10 5 11 11C.9 6 12 9 10 15D.8 10 10 5 9 10

单击按钮时,以下列程序运行后的输出结果是 Private Sub proc1(x As Integer,y As Integer,z As Integer) x=3*z y=2*z z=X+y End Sub Private Sub Command1_Click( ) Dim x As Integer,y As Integer,z As Integer x=1:y=2:z=3 Call proc1(x,x,2) Print x;x;z Call proc1(x,y,y) Print x;y;y End SubA.6 6 12 6 6 10B.9 5 10 5 10 10C.9 6 12 9 10 15D.9 5 10 5 4 10

单击按钮时,以下程序运行后的输出结果是 Private Sub Commandl_Click( ) Dim X As Integer,y As Integer,z As Integer x=1:y=2: Z=3 Call God(x,x,z) Print x;x;z Call God(x,y,y) Print X;y;y End Sub Private Sub God(x As Integer,y As Integer,z As Integer) x=3 * Z + 1 y=2 * Z z=x + y End SubA.6 6 12 7 11 11B.8 5 10 5 11 11C.9 6 12 9 10 15D.8 10 10 5 9 10

已知曲面方程为x-yZ+z2-2x+8y+6z=10,则过点(5,-2.1)的切平面方程为( )。A、2x+3y+2z=0B、2x+y+2z=lOC、x-2y+6z=15 D、x-2y+6z=0

请根据测试条件(X3,Y5)设计条件组合覆盖测试用例()A、X=6,Y=3B、X=6,Y=8C、X=2,Y=3D、X=2,Y=8

指出下列关系模式是第几范式?并说明理由。 (1)R(X,Y,Z)F={XY→Z} (2)R(x,Y,z)F={Y→z,XZ→Y} (3)R(X,Y,Z)F={Y→Z,Y→X,X→YZ} (4)R(x,Y,z)F={X→Y,X→Z} (5)R(x,Y,Z)F={XY→Z} (6)R(W,X,Y,Z)F={X→Z,WX→Y}

经过点(6,-3,2)且与平面4x-y+2z=8平行的平面方程是()。A、6x-3y+2z=31B、4x-y+2z=31C、6x-3y+2z=10D、4x-y+2z=10

过点(4,-1,3)且平行于直线L:(x-3)/2=y=(z-1)/5的直线方程为().A、(x-4)/2=(y+1)/0=(z-3)/5B、(x-4)/2=(y+1)/1=(z-3)/5C、(x+4)/2=(y-1)/0=(z+3)/5D、(x+4)/2=(y-1)/1=(z+3)/5

单选题曲面x2+2y2+3z2=21在点(1,-2,2)的法线方程为(  )。A(x-1)/1=(y+2)/4=(z-2)/6B(x-1)/1=(y+2)/(-4)=(z-2)/6C(x-1)/6=(y+2)/(-4)=(z-2)/1D(x-1)/1=(y+2)/6=(z-2)/(-4)

单选题Which of the following choices could be equal to set Z ifX = {2, 5, 6, 7, 9} and Y = {2, 5, 7}X ∪ Y ∪ Z = {1, 2, 3, 4, 5, 6, 7, 8, 9}X ∩ Z = {2, 6}Y ∩ Z = {2}AZ= {1, 4, 8}BZ= {1, 3, 8}CZ= {1, 3, 4, 8}DZ= {1, 2, 3, 4, 6, 8}EZ= {1, 2, 3, 5, 6, 8}