如下程序,运行的结果是( )PrivateSubForm_Click()DimmAsInteger,IAsInteger,x(10)AsIntegerForI=0to4x(I)=I+1NextIForI=1to2Callproc(x)NextIForI=0to4Printx(I);NextIEndSubPublicSubproc(a()AsInteger)StaticIAsIntegerDoa(I)=a(I)+a(I+1)I=I+1LoopWhileI2EndSubA.34756B.35745C.23445D.45678

如下程序,运行的结果是( )

PrivateSubForm_Click()

DimmAsInteger,IAsInteger,x(10)AsInteger

ForI=0to4

x(I)=I+1

NextI

ForI=1to2

Callproc(x)

NextI

ForI=0to4

Printx(I);

NextI

EndSub

PublicSubproc(a()AsInteger)

StaticIAsInteger

Do

a(I)=a(I)+a(I+1)

I=I+1

LoopWhileI<2

EndSub

A.34756

B.35745

C.23445

D.45678

相关考题:

以下程序段的定义语句中, x[1] 的初值是 【 9 】 ,程序运行后输出的内容是 【 10 】 。#include stdio.hmain(){ int x[]={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16},*p[4],i;for(i=0;i4;i++){ p[i]=x[2*i+1];printf("%d",p[i][0]);}printf("\n");}

有以下程序:fun(int a[],int m,int n){int i;for(i=m;in;i++)a[i+1]=a[i]+3;return a[i+1];}void main(){int i,a[6]={2,4,6,8,10,12};fun(a,2,5);for(i=0;i6;i++)printf("%d",a[i]);}程序运行后输出的结果是( )。A.24691315 B.24691215 C.249121518 D.249121415

下面程序的运行结果是【17】。#define N 10#define s(x)x*x#define f(x)(x*x)main(){ int i1,i2;i1=1000/s(N); i2=1000/f(N);printf("%d %d\n",i1,i2);}

下列程序段的执行结果为( )。 I=4 x=5 Do I=I+1 x=x+2 Loop Until I>=7 Print"I=";I Print"x=";xA.I=4 x=5B.I=7 x=15C.I=6 x=8D.I=7 x=11

下面程序段的运行结果是【 】。Option Base 1Private Sub Swap (a() As IntegFor I=1 to 10\2t=a(I)a(I)=a(10-I+1)a(10-I+1)=tNext IEnd SubPrivate Sub Form_Click()Dim x(10) As IntegerFor I=1 to 10x(I)=I*2Next ISwap x()For I=1 to 10Print x(I)Next IEnd Sub

下面程序的输出结果是( )。 #define WW(X) X*X main() { int a,i; i=3; a=++WW(i+1); printf("%d\n",a); }A.5B.6C.9D.程序有错误

下列程序的运行结果为【】。 include void main(void) {int i=10;switch(i){case 9:i=i 下列程序的运行结果为【 】。include<iostream.h>void main(void){int i=10;switch(i){ case 9:i=i+1;case 10:i=i+1;case 11:i=i+1;default:i=i+1;}cout<<i<<endl;}

运行下列程序,显示的结果是( )。 PrivateSub Command34 Click( )i=0 Do i=i+1 LoopWhile i%10MsgBox i End SubA.0B.1C.10D.11

以下能够正确计算n!的程序是A.Private Sub Command1_Chck( ) n=5:x=1 Do x=x*i i=i+1 Loop While i<n Print x End SubB.Private Sub Command1_Click( ) n=5:x=1:i=l Do x=x*i i=i+1 Loop While i<n Print x End SubC.Private Sub Command1_Click( ) n=5:x=1:i=l Do x=x*i i=i+1 Loop While i<=n Print x End SubD.Private Sub Command1_Click( ) n=5:x=1:i=l Dox=x*i i=i+1 Loop While i>n Print x End Sub

下面程序和运行运行结果是【 】。define N 10define s (x) x * xdefine f(x) (x * x)main( ){ iht i1,i2;i1 = 1000/s(N); i2 = 1000/f(N);printf("%d %d\n",i1,i2);}

下列程序的运行结果是______。define POWER(x) ((x)*(x))main (){ int i=1;printf("%d,%d",POWER(i++),i);}

以下能够正确计算n! 的程序是( )。A.Private Sub Command1_Click( ) n=5:x=l Do x=x*i i=i+1 Loop While i < n Print x End SubB.Private Sub Command1_Click( ) n=5:x=1:i=1 Do x=x*i i=i+1 Loop While i < n Print x End SubC.Private Sub Command1_Cliek( ) n:5:x=1:i=1 Do x=x* i i:i+1 Loop While i < = n Print x End SubD.Private Sub Command1_Cliek( ) n=5:x:1:i=1 Do x=x*i i=j+1 Loop While i > n Print x End Sub

运行下列程序,在立即窗口显示的结果是( )。 PrivateSub Command0_Click( ) Dim I AsInteger,J AsInteger For I=2To 10 For J=2 To1 If I modJ=0 Then Exit For Next J IfJsqr(I)Then Debug.Print I; Next I End SubA.1579B.468C.3579D.2357

有以下程序:main(){ int a[3][3],*p,i;p=a[0][0];for(i=0;i<9;i++)p[i]=i+1;printf("%d\n",a[1][2]);}程序运行后的输出结果是【 】。

以下程序运行后的输出结果是( )。 include main() {char ch[]="abcd",x[4][4];int i; f 以下程序运行后的输出结果是( )。 include<string.h> main() {char ch[]="abcd",x[4][4];int i; for(i=0;i<4;i++)strcpy(x[i],ch); for(i=0;i<4;i++)printf("%s",x[i][i]); printf("\n"); }

以下能够正确计算n!的程序是A.Privas Sub Command1_Click() n=5:x=1 Do x=x*i i=i+1 Loop While i<n Print x End SubB.Private Sub Command1_Click() n=5:x=1:i=1 Do x=x*i i=i+1 Loop While i<n Print x End SubC.Private Sub Command1_Click() n=5:x=1:i=1 Do x=x*i i=i+1 Loop while i<=n Print x End SubD.Private Sub Command1_Click() n=5:x=1:i=1 Do x=x*i i=i+1 Loop While i>n Print x End Sub

以下能够正确计算n!的程序是______。A.Private Sub Commeadl_Click() n=5: x=1 Do x=x*i i=i+1 Loop While i<n Print x End SubB.Private Sub Command1_Click() n=5: x=1: i=1 Do x=x*i i=i+1 Loop While i<n Print x End SubC.Private Sub Command1_Click() n=5: x=1: i=1 Do x=x*i i=i+1 Loop Whilei<=n Print x End SubD.Private Sub Commsndl_Click() n=5: x=1: i=1 Do x=x*i i=i+1 Loop While i>n Print x End Sub

以下能够正确计算n!的程序是( )。A.Pfivate Sub Commgld1_LClick() n=5:x=1 Do x=x*1 i=i+1 Loop Whilei<nB.Private Sub Command1_Click() n=5:x=1:i=1 Do x=x*1 i=i+1 Loop Whilei<n Print x End SubC.Pfivate Sub Command1_ C1ick() n=5:x=1:i=1 Do X=X*1 i=i+1 Loop While i<=nD.Private Sub Command1_C1ick() n=5:x=1:i=1 Do X=X*1 i=i+1 Loop While i>n Print x End Sub

有以下程序#includestdio.hdouble f(double x);main(){ double a=0;int i;for(i=0;i30;i+=10) a+=f((double)i);printf("%5.0f\n",a);}double f(double x){return x*x*i;}程序运行后的输出结果是A.503B.401C.500D.1404

下列程序段的执行结果为 I=9 X=5 Do I=I+1 x=x+2 Loop Until I >=7 Print"I=";I Print"x=";xA.I=4x=5B.I=7x=15C.I=6x=8D.I=10x=7

以下能够正确计算n!的程序是( )。A.Private Sub Commandl_C1ick()B.hiVate Sub Commandl_C1ick() n=5:x=1 n=5:x=1:i=1 DO DO X=x*1 X=X*1 i=i+1 i=i+1 Loop while i<n Loop While<n Print x Ptinte x End Sub End SubC.Private Sub Commandl_Click ()D.Pdvate Sub Commandl C1ick() n=5:X=1:i=1 n=5=:x=1:i=1 DO DO X=X*1 X=X*1 i=i+1 i=i+1 Loop While i>n Print x Print x End Sub End Sub

以下程序的定义语句中,x[1]的初值是 [9] ,程序运行后输出的内容是 [10] 。include main( 以下程序的定义语句中,x[1]的初值是 [9] ,程序运行后输出的内容是 [10] 。include <stdio.h>main(){ int x[]={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16},*p[4],i;for(i=0;i<4;i++){ p[i]=x[2*i+1];printf("%d",p[i][0]);}printf("\n");}

下面程序的运行结果是_____和_____。 include define N 10 define s(x) x * x define 下面程序的运行结果是_____和_____。include<iostream.h>define N 10define s(x) x * xdefine f(x) (x * x)void main( ){ int i1,i2;i1=1000/s(N) ;i2=1000/f(N) ;cout < < i1 < < " " < < i2;}

单选题有以下程序:#include main(){ int x[3][3]={{2},{4},{6}},i,*q=x[0][0]; for(i=0;i {  if(i==0)   x[i][i+1]=*q+1;  else   ++q;  printf("%d",*q); } printf("");}程序的运行结果是(  )。A23B26C33D36

单选题有以下程序:#include main(){ int i,j=0; char a[] = How are you,b[10]={0}; for(i=0;a[i];i++)  if(a[i]==' ')   b[j++]=a[i+1]; printf(%s,b);}程序运行后的输出结果是(  )。AHayBHow are youCweDay

单选题有以下程序:#include#includemain(){ inti; chara[]=Howareyou!; for(i=0;a[i];i++) {  if(a[i]=='')  {   strcpy(a,a[i+1]);   i=0;  } } printf(%s,a);}程序的运行结果是(  )。Ayou!BHowareyou!Careyou!Dare you!

单选题有如下程序:#includemain(){ inti; for(i=0;i5;i++)  putchar('Z'-i);}程序运行后的输出结果是(  )。A'X''Y''Z''W''V'BVWXYZCZYXWVD'ABCDE'