单选题以下是表单的Activate事件的代码: s=0 for n=5 to 0 step -1 s=s+n endfor this.text1.value=s 这段代码执行后,文本框Text1的值为()A-1B0C5D15

单选题
以下是表单的Activate事件的代码: s=0 for n=5 to 0 step -1 s=s+n endfor this.text1.value=s 这段代码执行后,文本框Text1的值为()
A

-1

B

0

C

5

D

15


参考解析

解析: 暂无解析

相关考题:

有以下程序#include stdio.h#include string.hvoid fun(char s[][10],int n){ char t;int i,j;for(i=0;in-1;i++)for(j=i+1;jn;j++)/* 比较字符串的首字符大小,并交换字符串的首字符 */if (s[i][0] s[j][0]) {t=s[i][0];s[i][0]=s[j][0];s[j][0]=t;}}main(){ char ss[5][10]={"bcc","bbcc","xy","aaaacc","aabcc"};fun(ss,5); printf("%s,%s\n",ss[0],ss[4]);}程序运行结果是A)xy,aaaaccB)aaaacc,xyC) xcc,aabccD) acc,xabcc

1+ + + +…….n 最大的n。请填空Private Sub Command1__Click()Dim s ,m,n AS Integerm=Val(InputBox(“请输入一个大于100的整数”))n=_______s=0Do While s N=n+1S=s+n*nLoopPrint “满足不等式的最大n是_______End Sub

有以下程序:includeincludevoid fun(char s[][10],int n){char t;int i,j; 有以下程序: #include<stdio.h> #include<string.h> void fun(char s[][10],int n) { char t;int i,j; for(i=0;i<n-1;i++) for(j=i+1;j<n;j++) /*比较字符串的首字符大小,并交换字符串的首字符*/ if(s[i][0]>s[j][0]){t=s[i][0];s[i][0]=s[j][0];sEj][0]=t;} } main() {char s[5][10]={"bcc","bbcc","xy","aaaacc","aabcc"); fun(ss,5);printf("%s,%s\n",ss[0],ss[4]); } 程序的运行结果是( )。A.xy,aaaaccB.aaaacc,xyC.xcc,aabccD.acc,xabcc

该程序运行后屏幕显示的结果是( )。 S=0 FOR X=2 TO 10 STEP 2 S=S+X ENDFOR ?S RETURNA.10B.20C.30D.40

在执行以下程序时,为了使输出结果为:t=4,则给a和b输入的值应满足的条件是______。main (){ int s,t,a,b; scanf("%d,%d",a,b); s=1, t=1; if(a>0)s=s+1; if(a>b)t=s+1; else if (a==b) t=5; else t=2*s; printf("%d\n",t);}A.a>bB.a<b<0C.0<a<bD.0>a>b

有以下程序 include include void fun(char s[][10],int n 有以下程序 #include <stdio.h> #include <string.h> void fun(char s[][10],int n) { char t; int i j; for (i=0; i<n-1; i++) for 0--i+l; j<n; j++) /*比较字符串的首字符大小,并交换字符串的首字符*/ if(s[i][0] > s[j][0]) { t = s[i][0]; s[i][0] = s[j][0]; s[j][0] = t;} } main() { char ss[5][10]= {"bcc", "bbcc", "xy", "aaaacc", "aabcc" }; fun(ss, 5); printf("%s,%s\n", ss[0],ss[4]); } 程序的运行结果是A.xy, aaaaccB.aaaacc,xyC.xcc,aabccD.acc,xabcc

有以下程序includeintfun(chars[]){intn=0;while(*s='0'){n=10*n+* 有以下程序 #include <stdio.h> int fun(char s[]) { int n=0; while(*s<='9'*s>='0') {n=10*n+*s-'0';s++;} return(n); } main() {char s[10]={'6','1','*','4','*','9','*','0','*'}; printf("%d\n",fun(s)); } 程序的运行结果是A.9B.61490C.61D.5

下面程序的运行结果是( )。 include main() {int a,s,n,m; a=2;s=0;n=1;m=1; while(m 下面程序的运行结果是( )。 include<stdio.h> main() {int a,s,n,m; a=2;s=0;n=1;m=1; while(m<=4){n=n*a;s=s+n;++m;} printf("s=%d",s); }

下列程序的运行结果是 SET TALK OFF STORE 0 TO S N=20 DO WHILE N>S S=S+N N=N-2 ENDDO ?S RETURNA.0B.2C.20D.18

有以下程序:includeint f(int t[],int n);main(){int a[4]={1,2,3,4},s;s=f(a,2);prin 有以下程序: #include<stdio.h> int f(int t[],int n); main() {int a[4]={1,2,3,4},s; s=f(a,2);printf("%d\n",s); } int f(int t[],int n) {if((n>0)(n<5))return t[n+1]+f(t,n-1); else return 0; } 程序运行后的输出结果是( )。A.4B.7C.10D.61

在执行以下程序时,为了使输出结果为t=4,给a和b输入的值应该满足的条件是_______。 main() { int s,t,a,b; scanf("%d%d",a,B) ; s=1;t=1; if(a>0)s=s+1; if(a>B) t=s+t; else if(a==B) t=5; else t=2*s; printf("t=%d\n",t); }A.a>bB.a<b<0C.0<a<bD.0>a>b

SETTALKOFF STORE 0 TO S N=20 DO WHILE N>S S=S+N N=N-2 ENDDO ?S RETURN 上列程序的运行结果是A.0B.2C.20D.18

【程序说明】 程序功能是用两种循环步长值来求1+2+3+…+50的值。【程序一】S=0FOR (5)(6)ENDFOR? SRETURN【程序二】S=0FOR (7)S=S+NENDFOR(8)RETURN(5)A.N=50 TO 1B.N=1 TO 50 STEP-1C.N=1 TO 50D.S=1 TO 50

有以下程序 include int fun(char s[ ]) { int n=0; while(*s='0 有以下程序#include <stdio.h>int fun(char s[ ]){ int n=0;while(*s<='9'*s>='0') {n=10*n+*s-'0';s++;}retum(n);}main( ){ char s[10]={'6','1','*','4','*','9','*','0','*'};printf("%d\n",fun(s));}程序的运行结果是A.9B.61490C.61D.5

编写一个程序序列2,3/2,5/3,8/5,13/8,21/13——前N项之和。S=0【 】FOR I=l TO N【 】【 】ENDFOR?” S=”,S

该程序运行后屏幕显示的结果是__________。s=1FORi=1 T0 5 STEP2s=s+iENDFOR?sRETURN

有以下程序#include stdio.h#include string.hvoid fun(char s[][10],int n){char t; int i,j;for(i=0;in-1;i++)for(j=i+1;jn;j++)/*比较字符串的首字符大小 ,并交换字符串的首字符*/if(s[i][0]s[j][0]) {t=s[i][0];s[i][0]=s[j][0];s[j][0]=t;}}main(){char ss[5][10]={“bcc”,”bbcc”,”xy”,”aaaacc”,”aabcc”};fun(ss,5); printf(“%s,%s\n”,ss[0],ss[4]);}程序的运行结果是( )。A.xy,aaaaccB.aaaacc,xyC.xcc,aabccD.acc,xabcc

以下是表单的Activate事件的代码: s=0 n=5 do while n0 s=s+n n=n-1 enddo this.label1.caption=str(s,2) 这段代码执行后,标签Label1的标题为()A、0B、10C、15D、20

以下是表单的Activate事件的代码: s=1 n=1 do while n=4 s=s*n n=n+1 enddo this.label1.caption=str(s,2) 这段代码执行后,标签Label1的标题为()A、24B、10C、4D、1

以下是表单的Activate事件的代码: s=0 for n=10 to 0 step -5 s=s+n endfor this.text1.value=s 这段代码执行后,文本框Text1的值为()A、-5B、0C、10D、15

以下是表单的Activate事件的代码: s=0 for n=1 to 10 step 3 s=s+n endfor this.text1.value=s 这段代码执行后,文本框Text1的内容为()A、0B、3C、12D、22

以下是表单的Activate事件的代码: s=0 for n=5 to 0 step -1 s=s+n endfor this.text1.value=s 这段代码执行后,文本框Text1的值为()A、-1B、0C、5D、15

在表单FORM1中有一个文本框TEXT1,TEXT1的INIT事件代码如下:THIS.VALUE=0TEXT1的VALID事件代码如下:S=0FORi=1TOTHIS.VALUEIFi%5=0S=S+iENDIFENDFORTHIS.VALUE=S在TEXT1中输入22,然后按回车键,TEXT1中将显示()。A、0B、22C、50D、100

以下是表单的Activate事件的代码: s=0 n=0 do while n10 s=s+n   n=n+3 enddo this.label1.caption=str(s,2) 这段代码执行后,标签Label1的标题为()A、18B、10C、3D、0

单选题在表单FORM1中有一个文本框TEXT1,TEXT1的INIT事件代码如下:THIS.VALUE=0TEXT1的VALID事件代码如下:S=0FORi=1TOTHIS.VALUEIFi%5=0S=S+iENDIFENDFORTHIS.VALUE=S在TEXT1中输入22,然后按回车键,TEXT1中将显示()。A0B22C50D100

单选题以下是表单的Activate事件的代码: s=0 for n=10 to 0 step -2 s=s+n endfor this.text1.value=s 这段代码执行后,文本框Text1的值为()A30B10C0D-2

单选题以下是表单的Activate事件的代码: s=0 n=5 do while n0 s=s+n n=n-1 enddo this.label1.caption=str(s,2) 这段代码执行后,标签Label1的标题为()A0B10C15D20

单选题以下是表单的Activate事件的代码: s=1 n=1 do while n=4 s=s*n n=n+1 enddo this.label1.caption=str(s,2) 这段代码执行后,标签Label1的标题为()A24B10C4D1