题型:综合题 题类:常考题 难易度:困难
浙江省东阳高级中学2018-2019学年高二下学期信息技术开学考试试卷
Private Sub Command1_Click()
Dim s As String, t As String, c As String
Dim i As Integer, p As Integer, p0 As Integer
s =" " : t =" " : p0 = 0
For i = 1 To Len (Text2.Text)
c = ①
If c = "," Then
p = Val(t)
s = s + Mid(Text1.Text, p0 + 1, p – p0) + "/ "
t = ""
②
Else
t = t + c
End If
Next i
Text3. Text = ③
End Sub
① ② ③
绘制函数图象y=x2的VB源代码如下,请补充完整。
Private Sub Command1_Click() '按钮的单击事件 Dim x, y As Single '定义x,y两个变量 Picture1.Scale (-10, 25)-(10, -25) '定义坐标系 Picture1.Line (-10, 0)-(10, 0), RGB(0, 0, 255) '画横坐标轴,颜色为蓝色 Picture1.Line (0, 25)-(0, -25), RGB(0, 0, 255) '画纵坐标轴,颜色为蓝色 For x = -10 To 10 Step 0.0001 'x值从-10变化到10,每次增量为0.0001 {#blank#}2{#/blank#} '本行代码计算函数y=x2 Picture1.PSet (x, y), RGB(255, 0, 0) '根据x,y的值用红色描点 Next x '取下一个增量后的x值 End Sub |
以上的VB计算机语言是{#blank#}3{#/blank#}语言。(已知计算机语言有:机器语言、汇编语言、高级语言)
试题篮