试题 试卷
题型:综合题 题类:常考题 难易度:普通
【bj】高中信息技术综合库——基本数据类型2
import math
h = 500
g = 9.8
t = math.sqrt(2*h/g)
hx = g*(t-1)*(-1)/2
hh = h-hx
print(“小球最后1秒下落的位移是:”,hh,“m”)
m=a(1)
For i=2 to 100
If a(i) > m then m=a(i)
Next i
该程序段执行后,变量m中存储的是( )
n = 0: i = 2: f = True
Do While i <= 6 And f
n = n + 1
f = False
For j = 6 To i Step -1
If a(j) < a(j - 1) Then
t = a(j): a(j) = a(j - 1): a(j - 1) = t
Last = j
f = True
End If
Next j
i = Last + 1
Loop
数组元素a(1)到 a(6)的值依次为“10,16,82,36,51,87”,经过该程序段“加工”后,下列说法不正确( )
试题篮