试题 试卷
题型:多选题 题类:常考题 难易度:普通
4.1.1Python的常量和变量-粤教版(2019)高中信息技术必修一练习
i = 1: j = 10: temp = a(5)
Do While a(j) > temp j = j - 1
Loop
Do While a(i) < temp i = i + 1
temp = a(i) :a(i) = a(j):a(j) = temp
数组元素a(1)到a(10)的值依次为“36 91 36 17 93 99 2 9 97 97”,执行该程序段后,a(5)的值为( )
Dim a(3, 3) As Integer
For m = 1 To 3
For n = 1 To 3
a(m, n)=(m-1)*3+n
Next n
Next m
For m = 2 To 3
For n = 1 To 2
Print a(n, m);
运行后输出结果是( )
Dim a(1 To 5) As Integer
t=0
For i = 1 To 5
a(i) = Int(Rnd * 30 + 10)
t = t + a(i) \ 10
Next i
For j = 1 To t \ 3
If j Mod 2 = 1 Then a(j) = a(j) + 1 Else a(j) = a(j) - 1
Next j
运行程序后,数组a各个元素的值,不可能的是( )
s="0923 Hangzhou Yayunhui"; t=""
for i in range(len(s)):
j=s[i]
if not j>="a" or j>"z":
t=""
t=j+t
print(t)
程序运行后,输出的内容是( )
试题篮