下列程序运行后屏幕显示的结果是( )。S=FOR X=2 TO 10 STEP 2S=S+XENDFOR?SRETURNA.10B.20C.30D.40
下列程序运行后屏幕显示的结果是( )。
S=
FOR X=2 TO 10 STEP 2
S=S+X
ENDFOR
?S
RETURN
A.10
B.20
C.30
D.40
相关考题:
阅读下列程序,并给出运行结果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运行以上程序后,屏幕显示【 】。
执行下列程序后,屏幕上显示的结果是( )。 X=2 Y=3 ? X,Y DO SUBl ?? X,Y PROCEDURE SUBl PRIVATE Y X=4 Y=5 RETURNA.2 3 4 5B.2 3 4 3C.4 5 4 5D.2 3 2 3
运行下列程序:Private Sub form_Click( )Dim sl As String, s2 As Strings1 = "12341234m = 0For i = 3 To 1 Step -1m = m + 1s2 = fun1(s1, m)Debug.Print s2;Next iEnd SubPrivate Function fun1(x, y) As Stringfun1 = Right(x, y)End Function单击窗体后,则在立即窗口内显示结果是( )。A.1234B.4321C.434234D.1111
在运行下列程序后,屏幕上显示的结果是 STORE 10 TO X,Y,Z DO PROCl WITH(X),Y ?X,Y,Z PROCEDURE PROCl PARAMETER M,N M=M+10 N=N+10 RETURNA.10 10 10B.10 20 10C.10 20 20D.10 10 20
程序段如下,程序运行后消息框显示的结果是______。 Dim a, s As String, i As Integer a = "晴空万里" s = "" For i = 1 To 4 Step 2 s = Mid(a, 4 - i, 2) Next MsgBox(s)A.晴空万里B.万里晴空C.晴空D.万里