网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
该程序运行后屏幕显示的结果是( )。
S=0
FOR X=2 TO 10 STEP 2
S=S+X
ENDFOR
?S
RETURN
A.10
B.20
C.30
D.40
参考答案
更多 “ 该程序运行后屏幕显示的结果是( )。S=0FOR X=2 TO 10 STEP 2S=S+XENDFOR?SRETURNA.10B.20C.30D.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运行以上程序后,屏幕显示【 】。
考题
【程序说明】 程序功能是用两种循环步长值来求1+2+3+…+50的值。【程序一】S=0FOR (5)(6)ENDFOR? SRETURN【程序二】S=0FOR (7)S=S+NENDFOR(8)RETURN(5)A.N=50 TO 1B.N=1 TO 50 STEP-1C.N=1 TO 50D.S=1 TO 50
考题
运行下列程序: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
考题
有以下程序 main () { int aa[4][4]={{1,2,3,4} {5,6,7,8},{3,9.10,2},{4,2,9,6}}; int i. s=0 for(i=0;i<4;i++) s+=aa[i] [1]; printf ( "%d\n", s); } 程序运行后的输出结果是A.11B.19C.13D.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.万里
热门标签
最新试卷