如果x的值大于或等于y的立方,则打印“OK”,表示这个条件的单行格式的If语句是()A、If x=y^3 Print “OK”B、If x=y*y*y Then “OK”C、If x=y^3 Then Print “OK”D、If x=y*y*y Then Print “OK” End If
如果x的值大于或等于y的立方,则打印“OK”,表示这个条件的单行格式的If语句是()
- A、If x>=y^3 Print “OK”
- B、If x>=y*y*y Then “OK”
- C、If x>=y^3 Then Print “OK”
- D、If x>=y*y*y Then Print “OK” End If
相关考题:
已知“a=dict(x=1,y=dict(y1=2,y2=3))”且“b=a.copy()”,则执行“a['y']['y1']=10”后,则print(b)的输出结果为()。 A、{x=1,y={y1=10,y2=3}}B、{x=1,y={y1=2,y2=3}}C、{'x':1,'y':{'y1':10,'y2':3}}D、{'x':1,'y':{'y1':2,'y2':3}}
设x=4,y=6,则以下不能在窗体上显示出“A=10”的语句是( )。A.Print A=x+yB.Print"A=";x+yC.Print "A="+Str(x+y)D.Print"A="x+y
( 18 )设 x=4 , y=6 ,则下列不能在窗体上显示出 “ A=10 ” 的语句是( )。A ) Print A=x+yB ) Print"A=";x+yC ) Print"A="+Str(x+y)D ) Print"A="x+y
下面的程序是计算给定函数的值,自变量x,y的值用InputBox函数输入,函数如下:f(x,y) =程序不完整,请填空,将程序的补充完整。Option ExplicitDim x As SingleDim y As SingleDim z As SinglePrivate Sub Command1_Click()x=Val(InputBox("x=") )y=Val(InputBox("y=") )End SubPrivate Sub Command2_Click()If 【13】 Thenz=x ^ 2 + y ^ 2ElseIf 【14】 Thenz=x ^ 2 - 2 * y ^ 2【15】z=y ^ 2 - 3 * x ^ 2End IfForm1.Print "当x,y的值为:"; x, yForm1.Print "f(x,y) 的值为:"; zEnd Sub
下列程序段的执行结果为 ______。 X=5 Y=-20 If Not X>0 Then X=Y-3 Else Y=X+3 Print X-Y; Y-XA.-3 3B.5 -8C.39875D.25 -25
设x=4,y=6,则以下不能在窗体上显示出“a=10”的语句是______。A.Prim A=x+yB.Print "A=";x+yC.Print "A=" +str(x+y)D.Print "A="X+y
下列程序段的执行结果为______。 x=5 y = -20 If Net x>0 Then x=y -3 Else y=x+3 Print x-y;y-x End IfA. -3 3B.5 -8C.3 -3D.25 -25
下列程序段( )能够正确实现条件:如果X<Y则A=15,否则A=-15。A.If X<Y Then A=15 A=-15 Prin AB.If X<Y Then A=15:Print A A=-15:Print AC.If X<Y Then A=1.5:Print A Else A=-15:Print A End IfD.If X<Y Then A=15 Else A=-15 Print A End If
如果x为整数且|x|>=100,则打印“OK”,否则打印“Error”,表示这个条件的单行格式 If语句是A.If Int((x)=x And Sqr(x)>=100 Then Print "OK" Else Print "Error"B.If Fix(x)=x And Abs(x)>=100 Then Print"OK"Else Print"Error"C.If Int(x)=x And (x>=100,x<=-100)Then Print"OK"Else Print"Error"D.If Fix(x)=x And x>=100 And x<=-100 Then Print "OK" Else Print "Error"
以下程序运行后的输出结果是 ______。 Sub add(x,y) x=x+y Print "x=";x;",y=";y End Sub Private Sub Command1_Click() x=1 y=1 Call add((x),(y)) Print"x="; x;",y=";y End SubA.x=1,y=1 x=2,y=2B.x=2,y=1 x=1,y=1C.x=1,y=1 x=1,y=1D.x=2,y=1 x=2,y=1
下列语句正确的是A.If x≠y Then Print "x不等于y"B.If x<>y Then Print "x不等于y"C.If x><y Then Print "x不等于y"D.If x<>y Print "x不等于y"
下列条件语句中,输出结果与其他语句不同的是( )。A.if(a)printf("%d n",x); else print[("%d\n",y)B.if(a=0)pritf("%d n",y); else print[("%d\n",x)C.if(a!一0)printf("%d n",x); else print[("%a\n",y)D.if(a=O)print[("%d n",x); else printf("%d\n",y)
以下程序段的输出结果是( )。 x=1 y=4 Do Until y4 x= x * y y=y+1 Loop Print XA.1SX 以下程序段的输出结果是( )。 x=1 y=4 Do Until y4 x= x * y y=y+1 Loop Print XA.1B.4C.8D.20
有以下类定义: class Point { public: Point(int x=0,int y=0){_x=x; _y=y;} void Move(int x Off, int y Off) {_x+=x Off; _y+=y Off; } void Print() const { cout <<'(' << _x << ',' << _y << ')'<< end 1;} private: int _x,_y; }下列语句中会发生编译错误的是______。A.Point pt; pr. Print();B.const Point pt; pt. Print();C.Point pt; pt. Move(1,2);D.const Point pt; pt. Move(1,2);
下列程序执行的结果是______。 Private Sub Command1_Click() x=25 If x>0 Then y=1 If x>10 Then y=2 If x>20 Then y=3 If x>30 Then y=4 Print y End SubA.1B.2C.3D.4
以下程序运行后,单击按钮输出结果是 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 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
设有如下类:class MyPoint {void myMethod() {int x, y;x = 5; y = 3;System.out.print( " ( " + x + ", " + y + " ) " );switchCoords( x, y );System.out.print( " ( " + x + ", " + y + " ) " );}void switchCoords( int x, int y ) {int temp;temp = x;x = y;y = temp;System.out.print( " ( " + x + ", " + y + " ) " );}}如果执行myMethod()方法,则输出结果为?A. (5, 3、(5, 3、(5, 3、B. (5, 3、(3, 5、(3, 5、C. (5, 3、(3, 5、(5, 3、
如果X的值小于或等于Y的平方,则打印"OK",表示这个条件的单行格式If语句是()A、If x<=y2 Then Print″OK″B、If x<=y^2 Print″OK″C、If x<=y^2 Then″OK″D、If x<=y^2 Then Print″OK″
变量x的值为3,y的值为4,执行下列哪个语句后,可输出表达式:3+4=7()。A、Print"x+y=";x+yB、Printx;"+";y;"=";x+yC、Printx;"+";"y";"=x+y"D、Printx;"+";"y=";x+y
单选题如果x的值大于或等于y的立方,则打印“OK”,表示这个条件的单行格式的If语句是()AIf x=y^3 Print “OK”BIf x=y*y*y Then “OK”CIf x=y^3 Then Print “OK”DIf x=y*y*y Then Print “OK” End If
单选题如果X的值小于或等于Y的平方,则打印"OK",表示这个条件的单行格式If语句是()AIf x<=y2 Then Print″OK″BIf x<=y^2 Print″OK″CIf x<=y^2 Then″OK″DIf x<=y^2 Then Print″OK″
单选题语句print(x,y)()。A输出x,yB输出x,y的值C出现错误信息D输出(x,y)