SET TALK OFF
STORE 0 TO X,Y
D.O WHILE X<20
X=X+Y
Y=Y+2
&& IF Y=4
&& EXIT
&& ENDIF
E.NDDO
? X,Y
SET TALK ON
RETURN
X的输出结果为 ______。
A.20
B.21
C.22
D.10
[单选题]执行下列程序: 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,YD.O WHILE X<6X=X+YY=Y+2E.NDDO? X,YSET TALK ONRETURN在屏幕上显示的输出结果是( )。A.88B.68C.46D.66
[单选题](程序)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 TAIK OFFSTORE 0 TO M,ND.O WHILE M<30N=N+3M=M+NE.NDDO? M,NSET TALK ONPETURNM的输出结果为 ______。A.30B.45C.18D.9
[主观题]SET TALK OFFSTORE O TO X,YD.0 WHILE.T.X=X+1Y=Y+XIF X>=5E.XITE.NDIFE.NDDO?X,YRETURN当程序执行到?x,Y命令时,X,Y的值分别是[ ]、[ ]。
[单选题]下列程序的运行结果是 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 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
[单选题](程序)SET TALK OFFINPUT “X=” TO XD.O CASEC.ASE X>10?“OK1”C.ASE X>20?“OK2”OTHERWISE?“OK3”E.NDCASESET TALK ONRETURN程序运行时输入X值为9,则显示结果为 ______。A.“OK1”B.OK1C.“OK2”D.“OK3”
[单选题](程序)SET TALK OFFI=1CLEARDO WHILE IINT(A) .OR. A>=10 LOOP ELSE I(程序)SET TALK OFFI=1C.LEARD.O WHILE I<=2INPUT “A=” TO AIF A>INT(A) .OR. A>=10LOOPE.LSEINPUT “B=” TO BIF B=INT(B) .AND. B<10LOOPE.LSE?A,“+”,B“=”,A+BE.NDIFE.NDIFI=I+1E.NODOSET TALK ONRETURN程
[单选题](程序)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乙