34.下面程序运行后,输出的值是________.
10 AA=-23.4
20 YY=SGN(AA)*INT(ABS(AA))
30 PRINT YY
40 END
A)23 B)23.4 C)-23 D)-23.4
35.下面程序运行后,输出的结果是________.
10 FOR J=1 TO 10
20 READ X
30 IF X/3=INT(X/3) OR X/5=INT(X/5) THEN S=S+X
40 NEXT J
50 PRINT "S="; S
60 DATA 1,3,5,7,9,11,13,15,17,19
70 END
A)27 B)20 C)32 D)37
36.下面程序运行时90语句行的输出结果为________.
10 1,2,3,4
20 READ E,E,F,F,G,G
30 RESTORE 10
40 X=E+F+G
50 DATA 5,6,7,8
60 READ E,F,G,H,J,K
70 RESTORE
80 READ G,F,E
90 PRINT E;F;G
100 PRINT E;F;G
110 PRINT X
120 END
A)1 2 3 B)4 5 6 C)5 6 7 D)6 7 8
37.下面程序运行后,输出N的值是________.
10 FOR J=1 TO 11
20 J=J+1
30 N=N+1
40 NEXT J
50 PRINT "N=";N
60 END
A)5 B)6 C)10 D)11
38.下面是计算S=1!+2!+3!+....+N!的程序,请选择答案将第110行补充完整.
10 INPUT "N=";N
20 S=0
30 FOR L=1 TO N
40 GOSUB 90
50 S=S+T
60 PRINT "T=";T,"S="; S
70 NEXT L
80 END
90 T=1
100 FOR J=1 TO L
110 T=
120 NEXT J
130 RETURN
A)T*J B)T*N C)T*S D)T*L
39.下面程序运行后,输出的值是________.
10 SUM=0
20 FOR J=6 TO 10
30 SUM=SUM+J
40 NEXT J
50 PRINT "SUM=";SUM
60 END
A)15 B)35 C)40 D)55
40.下面程序运行后,输出的值是________.
10 X$="12.34" : Y$="56.78"
20 Z$=X$+Y$
30 ZZ=VAL(Z$)
40 PRINT ZZ
50 END
A)12.34 B)56.78 C)69.12 D)12.3456
41.下面程序运行后,输出的结果是________.
1 4 7
2 5 8
3 6 9
请选择一正确的内容,将第30行处补充完整.
10 FOR J=1 TO 3
20 FOR K=1 TO 3
30 A(J,K)=
40 PRINT A(J,K);
50 NEXT K
60 PRINT
70 NEXT J
80 END
A)J+K B)(J-1)*3+K C)J+(K-1)*3 D)J*K
42.下面程序运行时输出的结果是________.
10 DIM A(10)
20 FOR J=6 TO 10
30 READ A(J)
40 NEXT J
50 PRINT A(0)+A(A(6))/A(10)
60 DATA 1,2,3,4,5
70 END
A)0.2 B)1.6 C)0 D)出错信息