试题 试卷
题型:多选题 题类: 难易度:普通
新疆伊犁哈萨克自治州霍城县2023-2024学年高一上学期信息技术10月月考试卷
x=1
y=4
Do While y>4
x=x * y
y=y+1
Loop
Print x
s=0
For i=1 To 3
s=s+i
Next i
该程序段运行后,变量s的值是( )
Private Sub Form_Click()
Dim arr(1 to 10, 1 to 10) As Integer
Dim i As Integer, j As Integer
For i =2 To 4
For j = 2 To 4
arr(i, j) = i * j
Next j
Label1.Caption =str(arr(2, 2)+ arr(3, 3))
End Sub
a=[27,5,25,36,78]
f=[False]*5
i=0
while i<4 and not f[i]:
for j in range(4, i, -1):
if a[j]<a[j-1]:
a[j], a[j-1]=a[j-1], a[j]
f[i]=True
i+=1
执行该程序段后,数组f中值为True的元素个数是( )
a=[30,10,20,11,12,50]
d=[0]*6 ; max=0 ; n=len(a)
for i in range(1,n):
for j in range(i):
if a[j]<a[i]:
d[i]+=1
if d[i]>max:
max=d[i]
执行程序后,变量max的值是( )
mw = input('请输入:')
res=''
i=0; j=0; n=len(mw)
while j<n:
if i%2==0:
mw+=mw[i]
else:
res+=mw[i]
j+=1
print(res)
若输入的内容为python,输出的结果为( )
试题篮