试题 试卷
题型:单选题 题类: 难易度:普通
浙江省绍兴市2023-2024学年高二上学期信息技术期中考试选考试卷
lst=[74,32,66,46,38,28,85]
k=1
for i in range(len(lst)-1):
if lst[i]*k < lst[i+1]*k:
print(lst[i],end=" ")
k=-k
执行完以上程序段后,输出的内容为( )
Dim a(1 To 15) As Integer
Private Sub Form_Load()
Dim i As Integer, t As Integer
Dim s1 As String, s2 As String
Randomize
s1 = ""
For i = 1 To 15
a(i) = ①
s1 = s1 + Str(a(i))
Next i
Text1.Text = s1
End Sub
Private Sub Com1_Click()
s2 = ""
s2 = ②
Text2.Text = s2
图 a
s,n=0,8
while True:
s+=n
if s>14:
break
n-=2
print(n,s)
执行程序后,输出结果可能是( )
a=[21,3,4,5,9,14,23]
c,m=0,0
for i in range(2,len(a)):
if a[i-2]+a[i-1]==a[i]:
c+=1
if c>m:
m=c
else:
c=0
print(m)
执行程序后,输出结果是( )
试题篮