网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
给出以下程序的运行结果: SET TALK OFF X=0 Y=0 DO WHILE X<10 X=X+1 IF INT(X/2)=X/2 LOOP ELSE Y=Y+X ENDIF ENDDO ?″Y=″,Y RETURN 运行结果为().
- A、Y=5
- B、Y=25
- C、Y=15
- D、Y=20
参考答案
更多 “给出以下程序的运行结果: 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” 相关考题
考题
【程序】SET TALK OFFI=1CLEARDO WHILE IINT(A) .OR. A>=10 LOOP ELSE I
【程序】SET TALK OFFI=1CLEARDO WHILE I<=2INPUT “A=” TO AIF A>INT(A) .OR. A>=10LOOPELSEINPUT “B=” TO BIF B=INT(B) .AND. B<10LOOPELSE?A,“+”,B“=”,A+BENDIFENDIFI=I+1ENODOSET TALK ONRETURN程序运行时,若依次输入2.5,8,3.5,则输出结果为 ______。A.2.5+8=10.5B.A+B=10.5C.8+3.5=11.5D.A+B=11.5
考题
【程序说明】程序功能是求1!+2!+3!+…+10!的累加和。【程序】SET TALK OFFS=0FOR i=1 TO 10t=1FOR j=1 TO (5)t=t*j(6)s=s+ tNEXT(7)SET TALK ON(5)A.10B.jC.9D.i
考题
【程序】SET TALK OFFDIMENSION A(6)FOR K=1 TO 6A(K)=30—3*KENDFORK=5DO WHILE K>=1A(K)=A(K)—A(K+1)K=K—1ENDDO? A(1),A(2),A(4),A(6)SET TALK ONRETURNA(1)的输出结果为 ______。A.24B.15C.27D.9
考题
执行下列程序:SET TALK OFFSTORE 0 TO X,YDO WHILE X<6X=X+YY=Y+2ENDDO? X,YSET TALK ONRETURN在屏幕上显示的输出结果是( )。A.88B.68C.46D.66
考题
阅读下列程序,并给出运行结果SET,FALK OFFCLEARSTORE 0 T0 X,Y,S1,S2,S3D0 WHILE X1OX=X +lDO CASECASE INT(X/2)=X/2S1:SI+X/2CASE MOD(XJ 3)=0S2=S2+X/3CASE INT(X/2)X/2S3=S3+1ENDCASEENDDO?S1,S2,S3SET TALK 0NRETURN运行以上程序后,屏幕显示【 】。
考题
【程序】SET TALK OFFINPUT“请输入A:” TO AINPUT“请输入B:” TO BIF A<BT=AA=BB=TENDIFDO WHILE B<>0T=MOD(A,B)A=BB=TENDDO? ASET TALK ONRETURN若程序运行时输入A值为12,B值为8,则A的输出结果为 ______。A.2B.4C.12D.8
考题
给出以下程序: 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
考题
设有如下程序文件: 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
考题
【程序】*** 主程序SET TALK OFFCLEARSTORE 100 TO X,Y,ZSET PROCEDURE TO GC1DO PROCl WITH X,Y? X,Y,ZSET PR()CEDURE TOSET TALK ONRETURN*** 过程PROCEDURE PROC1PARAMETER M,NM=M+100N=N+100RETURNX的输出结果为 ______。A.100B.200C.300D.400
考题
有如下程序: 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.程序出错
考题
【程序】SET TALK OFFCLEARSS=0FOR X=1 TO 10 STEP 3SS=SS+XENDFOR? SSSS的输出结果为 ______。A.22B.18C.12D.19
考题
下列程序的运行结果是 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
考题
下面程序的运行结果是( )。SET TALK OFFDECLARE d(2,3)FOR i=1 T0 2FOR j=1 T0 3d(i,j)=i+jENDFORENDFOR?d(4)A.2B.3C.4D.5
考题
执行下列程序: 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
考题
【程序】SET TALK OFFINPUT “X=” TO XDO CASECASE X>10?“OK1”CASE X>20?“OK2”OTHERWISE?“OK3”ENDCASESET TALK ONRETURN程序运行时输入X值为9,则显示结果为 ______。A.“OK1”B.OK1C.“OK2”D.“OK3”
考题
【程序】SET TALK OFFSTORE 0 TO X,YDO WHILE X<20X=X+YY=Y+2 IF Y=4 EXIT ENDIFENDDO? X,YSET TALK ONRETURNX的输出结果为 ______。A.20B.21C.22D.10
考题
禁止在Visual FoxPro窗口中显示程序运行结果的命令为()。A、SET ESCAPE OFFB、SET TALK OFFC、SET EXTACT OFFD、SET CONSOLE OFF
考题
单选题给出以下程序的运行结果: 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
热门标签
最新试卷