[单选题]

执行如下程序,最后S的显示值为

SET TALK OFF

s=0

i=5

x=11

D.O WHILE s<=x

s=s+i

i=i+1

E.NDDO

?s

SET TALK ON

A.5

B.11

C.18

D.26

参考答案与解析:

相关试题

执行如下程序,最后S的显示值为SET TALK OFFS=0i=5X=11DO

[单选题]执行如下程序,最后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

  • 查看答案
  • 执行下列程序,最后S的显示值为( )。SET TALK OFFs=0i=2x=1

    [单选题]执行下列程序,最后S的显示值为( )。SET TALK OFFs=0i=2x=10D.O WHILE s<=xs=s+ii=i+1E.NDDO?sSET TALK ONA.12B.14C.16D.18

  • 查看答案
  • 执行如下程序,则最后S的显示值为( )。 SET TALK FFS=0 i=5x

    [单选题]执行如下程序,则最后S的显示值为( )。 SET TALK FFS=0 i=5x=11DO WHILE s<=X s=s+ii=i+lENDD07 S SET TALK ONA. 5B. 11C. 18D. 26

  • 查看答案
  • 执行如下程序,最后s的显示值为 SET TALK OFF S=0 i=5 x=1

    [单选题]执行如下程序,最后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 OFFS=0I=1DO WHILE I<4 ACCEP

    [单选题](程序)SET TALK OFFS=0I=1D.O WHILE I<4A.CCEPT “请输入字符串:”TO XIF“A” $ XS=S+1E.NDIFI=I+1 ENDDO? SRETURN运行时输入:“abcd”、“aBCD”,输出S的值为 ______。A.3B.2C.1D.0

  • 查看答案
  • 若有如下程序: SET TALK OFF INPUT TO X FOR i=1

    [单选题]若有如下程序: SET TALK OFF INPUT TO X FOR i=1 TO 3 INPUT TO Y IF Y>X X=Y ENDIF ENDFOR ?X RETURN 本程序的功能是( )。A.求3个数中的最大值B.求4个数中的最大值C.求3个数中的最小值D.求4个数中的最小值

  • 查看答案
  • (程序)SET TALK OFFCLEARPUBLIC X,YX=5Y=3DO

    [单选题](程序)SET TALK OFFC.LEARPUBLIC X,YX=5Y=3D.O SUB? X,YSET TALK ONRETURNPROCEDURE SUBPRIVATE XX=1X=X*2+1Y=5RETURNX的输出结果为 ______。A.5B.6C.8D.3

  • 查看答案
  • 执行下列程序:SET TALK OFFSTORE 0 TO X,YDO WHIL

    [单选题]执行下列程序:SET TALK OFFSTORE 0 TO X,YD.O WHILE X<6X=X+YY=Y+2E.NDDO? X,YSET TALK ONRETURN在屏幕上显示的输出结果是( )。A.88B.68C.46D.66

  • 查看答案
  • 执行下列程序:SET TALK OFFSTORE 0 TO X,YDO WHIL

    [单选题]执行下列程序: 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 OFFCLEARSTORE 0 TO X,S1,S2,

    [单选题](程序)SET TALK OFFC.LEARSTORE 0 TO X,S1,S2,S3D.O WHILE X<15X=X+1D.O CASEC.ASEINT(X/2)=X/2S1=S1+X/2C.ASE MOD(X,3)=0S2=S2+X/3C.ASE INT(X/2)<>X/2S3=S3+1E.NDCASEE.NDDO? X,S1,S2,S3SET TALK ONRETURNX的输出结果为 ______。A.0B.14C.15D.16

  • 查看答案
  • 执行如下程序,最后S的显示值为SET TALK OFFs=0i=5x=11DO