F.unctionF(aAsInteger)
b=0
Staticc
b=b+1
c=c+1
F.=a+b+c
E.ndFunction
PrivateSubCommand1_Click()
D.imaAsInteger
a=2
F.orI=1To3
PrintF( )
NextI
E.ndSub
运行上面的程序,单击命令按钮,输出结果为( )
A.4,4,4
B.4,5,6
C.4,6,8
D.4,7,9
[单选题]阅读程序:F.unctionF(aAsInteger)AsIntegerb=0Staticcb=b+1c=c+1F.=a+b+cE.ndFunctionPrivateSubCommand1_Click()D.imaAsIntegera=2F.orI=1To3PrintF( )NextIE.ndSub运行结果为( )A.4和5和6B.4和4和4C.5和5和6D.6和6和6
[单选题]下面程序: void func (int *a,int b[]) { b[0] =*a+6;) main() { int a,b[5]; a=0; b[0]=3; func(&a,b); printf("%d/n",b[0]); } 则程序运行后的输出结果是( )。A.6B.7C.8D.9
[单选题]下面程序 main() { int a=-1,b=4,k; k=(a++<=0)&&(!(b--<=0)); printf("%d%d%d%d/n",k,a,B) ; } 的输出是_______。A.00 3B.0 1 2C.1 0 3D.1 1 2
[主观题]下面程序的输出结果为()。includef(int a){int b=0; static int c=3; b£«£«; c£«£«; retu下面程序的输出结果为[ ]。include<iostream.h>f(int a){int b=0;static int c=3;b++; c++;return(a+ b+ c);}void main(){int a=2,i;for(i=0;i<3;i++)cout<<f(a)<<end1;}
[单选题]已知有下面的过程Private Sub proc1(a As Integer,b As String,Optional x As Boolean)……E.nd Sub正确调用此过程的语句是( )。A.Call procl(5)B.Call proc1 5,”abc”,FalseC.proc1(12,”abc”,True)D.proc1 5, “abc”
[单选题]下面程序的输出结果是( )。A.)0B.)1C.)10D.)9
[单选题]请阅读以下程序:main(){ int a=5,b=0,c=0;if(a=b+c)printf("***\n");else printf("$$$\n");}以上程序A.有语法错不能通过编译B.可以通过编译但不能通过连接C.输出***D.输出$$$
[单选题]下面程序的输出结果是main(){int a=15, b=21,m=0;switch(a%3){ case 0, m++; break;case 1 :m++; switch(b%2) { default: m++; case 0:m++ ;break; }}cout<<m<<end1}A.1B.2C.3D.4
[单选题]下面程序的输出结果是main( ){int a=15,b=21,m=0;switch(a%3){ case 0:m++;break;case 1:m++;switch(b%2){default:m++;case 0:m++;break;}}cout<<m<<endl;}A.1B.2C.3D.4
[主观题]执行下面的程序段后,b的值为______。a=800b=30a=a+bb=a-ba=a-b