[单选题]

(程序)

SET TALK OFF

INPUT “X=” TO X

D.O CASE

C.ASE X>10

?“OK1”

C.ASE X>20

?“OK2”

OTHERWISE

?“OK3”

E.NDCASE

SET TALK ON

RETURN

程序运行时输入X值为9,则显示结果为 ______。

A.“OK1”

B.OK1

C.“OK2”

D.“OK3”

参考答案与解析:

相关试题

(程序)SET TALK OFFINPUT“请输入A:” TO AINPUT“请

[单选题](程序)SET TALK OFFINPUT“请输入A:” TO AINPUT“请输入B:” TO BIF A<BT=AA.=BB.=TE.NDIFD.O WHILE B<>0T=MOD(A,B)A.=BB.=TE.NDDO? ASET TALK ONRETURN若程序运行时输入A值为12,B值为8,则A的输出结果为 ______。A.2B.4C.12D.8

  • 查看答案
  • 程序如下:SET TALK OFFINPUT TO XFOR i=1 TO 3I

    [单选题]程序如下:SET TALK OFFINPUT TO XF.OR i=1 TO 3INPUT TO YIF Y>XX=YE.NDIFE.NDFOR?XRETURN本程序的功能是( )。A.求3个数中的最大值B.求4个数中的最大值C.求3个数中的最小值D.求4个数中的最小值

  • 查看答案
  • (程序)SET TALK OFFSTORE 0 TO X,YDO WHILE X

    [单选题](程序)SET TALK OFFSTORE 0 TO X,YD.O WHILE X<20X=X+YY=Y+2&& IF Y=4&& EXIT&& ENDIFE.NDDO? X,YSET TALK ONRETURNX的输出结果为 ______。A.20B.21C.22D.10

  • 查看答案
  • (程序)SET TALK OFFN=325X=“ABCDEFGHIJ”Y=“甲乙

    [单选题](程序)SET TALK OFFN=325X=“ABCDEFGHIJ”Y=“甲乙丙丁戊已.”NC=ALLTRIM(STR(N,6))L=LEN(NC)N2=2*L-1NN="K=1D.O WHILE K<=LN1=INT(VAL(SUBSTR(NC,K,1))* 2+1)NN=NN+SUBSTR(X,N1,1)NN=NN+SUBSTR(Y,N2,2)? N1,N2,NNN2=N2-2K=K+1E.NDDO? KSET TALK ON第一次输出结果为 ______。A.7 4G 甲B.7 5G乙

  • 查看答案
  • 执行下列程序: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 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 OFFCLEARX=3DO WHILE .T.X=X£

    [单选题](程序)SET TALK OFFC.LEARX=3D.O WHILE .T.X=X+1IF X=INT(X/3)*3? XE.LSELOOPE.NDIFIF X>10E.XITE.NDIFE.NDDOSET TALK ONRETURN当变量X的值第一次变化时,X的输出结果为 ______。A.3B.6C.8D.12

  • 查看答案
  • 若有如下程序: 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 OFFCLEARSTORE 100 TO

    [单选题](程序)*** 主程序SET TALK OFFC.LEARSTORE 100 TO X,Y,ZSET PROCEDURE TO GC1D.O 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 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 OFFINPUT “X=” TO XDO CASE C