试题 试卷
题型:单选题 题类:常考题 难易度:普通
江苏省海安高中2020-2021学年高一上学期信息技术期中考试试卷
for i in range(10):
k=int(input())
if k<=20 and k>0:
if k>15:
if k>18:
x=0
else:
x=1
if k>12:
x=4
x=5
c=“1234”
For i=1 To 4
Print_________
Next
如果要让程序运行后得到如下结果:
1 12 123 1234
则在下划线处应填入的内容为( )。
s = Text1.Text
ans = "": k =4
i = k - 1: j = k + 1: n = Len(s)
Do While k > 0
If Mid(s ,i,1) = Mid(s, j, 1) Then
ans = ans + Mid(s, i,1): k = k - 1
End If
i = (n + i - 2) Mod n + 1
j = j Mod n+1
Loop
Label1.Caption=ans
在文本框Text1中输入“banana”,执行程序后,标签Label1中显示的内容是( )
Private Sub Command1_Click()
Dim Pi As Single, t As Single
Dim n As Integer, s As Integer
Pi = 0
t = 1: n = 1: s =1
Do While Abs(t) >= 0.0001
Pi = Pi + t
n ={#blank#}1{#/blank#}
s= {#blank#}2{#/blank#}
t = s / n
Text2.Text ={#blank#}3{#/blank#}
End Sub
①a[i]=k ②a[i-1]=k ③a[i+1]=a[i] ④a[i]=a[i-1]
⑤for i in range(j,9) ⑥for i in range(8,j-2,-1)
划线处所需代码依次为( )
s,n=0,8
while True:
s+=n
if s>14:
break
n-=2
print(n,s)
执行程序后,输出结果可能是( )
试题篮