题型:单选题 题类:常考题 难易度:普通
浙江省金华市江南中学2020届高三信息技术网课2月22日第二周测试卷
Dim a( 1 To 10) As Integer
Function Search(L As Integer, R As Integer)
As Integer
M=(L+R)\2
If a(M) <a(M-1) And a(M) >a(M+1) Then
①
ElseIf a(M) >a(M-1) And a(M) >a(M+1) Then
②
ElseIf a(M) >a(M-1) And a(M) <a(M+1) Then
③
End If
End Function
Private Sub Command 1 click()
Label 1.caption=““峰顶”值是:” +Str(Search (1,10))
End Sub
上述程序中划线处可选语句为:
①Search=Search(M+1,R)
②Search=Search(L,M-1)
③Search=a(M)
则①②③处的语句依次是( )
输入2350123456783,先将字符串拆成三段,分别是235,012345678,3要求每一段必须严格有序,如果无法实现连续升序,则单独作为一个拆分。
原字符串 | 235 | 012345678 | 3 | |||
连续升序字符数 | 3 | 9 | 1 | |||
密文 | 235 | 3 | 012345678 | 9 | 3 | 1 |
在文本框Text1中输入原文,单击“加密”按钮,可在文本框Text2中输出密文。
在文本框Text2中输入密文,单击“解密”按钮,可在文本框Text3中输出原文。
试题篮