阅读下列程序段,选出正确的结果。()SET TALK OFF CLEARSTORE 0 TO a,b,nf=.T.DO WHILE fa=a+1DO CASECASE INT(a/3)a/3b=b+aCASEa10EXITCASE a=10n=n+1ENDCASEEND DO?n,bSET TALKONRETURNA、n=3 b=48B、n=4 b=48C、n=3 b=27D、n=4 b=27
阅读下列程序段,选出正确的结果。()SET TALK OFF CLEARSTORE 0 TO a,b,nf=.T.DO WHILE fa=a+1DO CASECASE INT(a/3)<>a/3b=b+aCASEa>10EXITCASE a<=10n=n+1ENDCASEEND DO?n,bSET TALKONRETURN
- A、n=3 b=48
- B、n=4 b=48
- C、n=3 b=27
- D、n=4 b=27
相关考题:
有如下一段程序: SET TALK OFF A=1 B=0 DO WHILE A<=100 IF.NOT.A/2=INT(A/2) B=B+A ENDIF A=A+1 ENDDO ? B SET TALK ON RETURN 该程序的功能是______。A.求1~100之间的累加和B.求1~100之间的累加和除以2的商C.求1~100之间的偶数之和D.求1~100之间的奇数之和
执行下列程序:SET TALK OFFSTORE 0 TO X,YDO WHILE X<6X=X+YY=Y+2ENDDO? X,YSET TALK ONRETURN在屏幕上显示的输出结果是( )。A.88B.68C.46D.66
给出以下程序: SET TALK OFF X=0 Y=0 DO WHILE X<100 X=X+1 IF INT(X/2)=X/2 LOOP ELSE Y=Y+X ENDIF ENDDO ?"Y=",Y RETURN 运行结果为 ______。A.Y=500B.Y=1500C.Y=2000D.Y=2500
有如下程序: * * *主程序:P.prg* * * * * *子程序:P1.prg* * * SET TALK OFF X2=X2+1 STORE 2 TO X1,X2,X3 DO P2 X1=Xl+1 X1:Xl+1 DO PI RETURN ?xl+x2+x3 * * *子程序:P2.prg* * * RETURN x3=x3+1 SET TALK ON RETURN TO MASTER 执行命令DOP后,屏幕显示的结果为A.3B.4C.9D.10
设有如下程序文件: SET TALK OFF CLEAR DIMENSION a(2,3) i=1 DO WHILE i<=2 j=1 DO WHILE j<=3 a(i,)=i+j ??a(i,j) j=j+1 ENDDO ? i=i+1 ENDDO SET TALK ON RETURN 执行此程序,程序的运行结果为A.2 3 4 3 4 5B.1 2 3 3 4 5C.1 2 3 2 4 6D.2 3 4 4 5 6
执行如下程序,最后S的显示值为 SET TALK OFF S=0 i=5 X=11 DO WHILE S<=x S=S +i I = I +l ENDDO ?s SET TALK ONA.5B.11C.18D.26
有如下程序: SET TALK OFF M=O N=O DO WHILE NM M-M+N N=N-10 ENDDO ?M RETURN 运行此程序显示M的值( )。A.0B.10C.100D.99
有如下一段程序: SET TALK OFF AY="Hello World!" BY="X" CY=ASC(BY)+1 DY=30 EY=CHR(DY*2+5)+CHR(CY) EY=EY ?"EY." SET TALK ON RETURN 执行该程序后,屏幕显示的结果为A.AYB.BYC.Hello World!D.程序出错
执行如下程序,最后S的显示值为( )。 SET TALK OFF s=0 i=2 x=10 DO WHILE s一一X S=S+i i=i十l ENDDO ?S SET TALK ONA.12B.14C.16D.18
有如下一段程序: SET TALK OFF A=1 B=0 DO WHILE A:100 IF.NOT.A/2=INT(A/2)B=B+A ENDIF A=A+1 ENDD0 ? 8 SET TALK ON RETURN 该程序的功能是( )。A. 求1到100之间的累加和B. 求1到100之间的累加和除以2的商C. 求1到100之间的偶数之和D. 求1到100之间的奇数之和
执行如下程序,最后s的显示值为 SET TALK OFF S=0 i=5 x=11 DO WHILE s=x s=s+i i=i+l ENDD0 7 S SET TALK ONA. 5B. 11C. 18D. 26
下列程序的运行结果是 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
执行下列程序: CLEAR SET TALK OFF STORE 1 TO i,a,b DO WHILE i<=3 DO PROG1 ??"P("+STR(i,1)+")="+STR(a,2)+"," i=i+1 ENDDO ??"b="+STR(b,2) RETURN PROCEDURE PROGl a=a*2 b=b+a SET TALK ON RETURN 程序的运行结果为A.P(1)=2,P(2)=3,P(3)=4,b=15B.P(1)=2,P(2)=4,P(3)=6,b=8C.P(1)=2,P(2)=4,P(3)=6,b=18D.P(1)=2,P(2)=4,P(3)=8,b=15
有如下一段程序: SET TALK OFF A=1 B=0 DO WHILE A<=100 IF.NOT.A/2=INT(A/2) B=B+A ENDIF A=A+1 ENDDO ?B SET TALK ON RETURN 该程序的功能是A.求1到100之间的累加和B.求1到100之间的累加和除以2的商C.求1到100之间的偶数之和D.求1到100之间的奇数之和
执行下列程序: SET TALK OFF STORE 0 TO X,Y DO WHILE X<6 X=X+Y Y=Y+2 ENDDO ?X,Y SET TALK ON RETURN 在屏幕上显示的输出结果是( )。A.8 8B.6 8C.4 6D.6 6
执行下列程序,最后S的显示值为( )。 SET TALK OFF s=0 i=2 x=10 DO WHILE s<=x s=s+i i=i+1 ENDDO ?s SET TALK ONA.12B.14C.16D.18
执行如下程序,最后S的显示值为 SET TALK OFF S=0 i=5 X=11 DO WHILE s<=X s=s+i i=i+1 ENDDO ?s SET TALK ONA.5B.11C.18D.26
给出以下程序的运行结果: SET TALK OFF X=0 Y=0 DO WHILE X10 X=X+1 IF INT(X/2)=X/2 LOOP ELSE Y=Y+X ENDIF ENDDO ?″Y=″,Y RETURN 运行结果为().A、Y=5B、Y=25C、Y=15D、Y=20
禁止在Visual FoxPro窗口中显示程序运行结果的命令为()。A、SET ESCAPE OFFB、SET TALK OFFC、SET EXTACT OFFD、SET CONSOLE OFF
单选题阅读下列程序段,选出正确的结果。()SET TALK OFF CLEARSTORE 0 TO a,b,nf=.T.DO WHILE fa=a+1DO CASECASE INT(a/3)a/3b=b+aCASEa10EXITCASE a=10n=n+1ENDCASEEND DO?n,bSET TALKONRETURNAn=3 b=48Bn=4 b=48Cn=3 b=27Dn=4 b=27
单选题给出以下程序的运行结果: SET TALK OFF X=0 Y=0 DO WHILE X10 X=X+1 IF INT(X/2)=X/2 LOOP ELSE Y=Y+X ENDIF ENDDO ?″Y=″,Y RETURN 运行结果为().AY=5BY=25CY=15DY=20
单选题禁止在Visual FoxPro窗口中显示程序运行结果的命令为()。ASET ESCAPE OFFBSET TALK OFFCSET EXTACT OFFDSET CONSOLE OFF