下列程序运行后屏幕显示的结果是( )。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运行以上程序后,屏幕显示【 】。

该程序运行后屏幕显示的结果是( )。 S=0 FOR X=2 TO 10 STEP 2 S=S+X ENDFOR ?S RETURNA.10B.20C.30D.40

执行下列程序后,屏幕上显示的结果是( )。 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

该程序运行后屏幕显示的结果是__________。s=1FORi=1 T0 5 STEP2s=s+iENDFOR?sRETURN

执行如下代码,则程序运行后,屏幕上显示的结果是:________。for i in range(3, 10, 3): if i%2: print(i)

下列程序段的输出结果是_____。 Dim s As Integer For i=10 To 1 Step -2 s=s+i Next i Print iA.0B.-1C.1D.-2

程序段如下,程序运行后消息框显示的结果是______。 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.万里