在利用回音标计算液面深度公式L=H〃L2/L1中,L2代表()。
第1题:
有以下程序:
Private Sub Form_Activate()
For j=1 to 3
x=3
For i=l to 2
x=x+6
Next
Next
Print x
End Sub
程序运行后,窗体上显示的结果为______。
第2题:
在窗体上画两个标签和一个命令按钮,其名称分别为Labell、Label2和Command1,然后编写如下程序: Private Sub func(L As Label,ByVal a As Integer) L.Caption="1234" a=a*a End Sub Private Sub Form_Load() Label1.Caption="ABCD" Label2.Caption=10 End Sub Private Sub Command1_Click() a=Val(Label2.Caption) Call func(Labell,A)Label2.Caption=a End Sub 程序运行后,单击命令按钮,在两个标签Label1和Label2中显示的内容分别是 ______。
A.ABCD和10
B.1234和100
C.ABCD和100
D.1234和10
第3题:
执行下列程序,输入数字3,则输出结果为______。
Private Sub Command1_Click()
a=inputBox("Input a Number")
If a>5 Then
GoTo L5
Else If a>2 Then
GoTo L2
Else
GoTo L3
End If
Exit Sub
L5:
Print a Mod 5
Exit Sub
L3:
Print a Mod 3
Exit Sub
L2:
Print a Mod 2
End Sub
第4题:
下列程序的输出结果是【 】。
Private Sub Command l Click()
Dim a(1 TO 20)
Dim i
For i=1 TO 20
a(i)=i
Next i
For Each i In a()
a(i)=20
Next i
Print a(2) End Sub
第5题:
有以下程序: #include<stdio.h> #define SUB(a)(a)-(a) main( ) {int a=2,b=3,c=5,d; d=SUB(a+b)*C; printf("%d\n",d); } 程序运行后的输出结果是( )。
A.0
B.-l2
C.-20
D.10
第6题:
某确诊呼吸衰竭患者,2小时前出现兴奋躁动,血气分析结果:Pa0<;SUB>;2<;/SUB>;52mmH9,PaC0<;SUB>;2<;/SUB>;60mmH9,pH 7.49,BE十19mmol/L,K十2.4mmol/L,Cl—76mmol/L。应首选的治疗措施是
A.呼吸机辅助通气
B.补碱性药物
C.给予镇静剂
D.补氯化钾
E.利尿剂
第7题:
执行下列程序,输入框中显示的默认字符串为上【 】:
Private Sub Command l_Click ()
Input Box”ok”“输入参数”,Format(”GHl2”’
End Sub
第8题:
布窗体上画一个名称为Command l的命令按钮,然后编写如下事件过程:
Private Sub Command l-Click ()
n=5
f=l
s=o
For I =l To n
f=f【 】
s= s +f
Next
Print s
End Sub
该事件过程的功能是计算s=1+1/2!+l+3!+…+l/ n!的值。请填空。
第9题:
在窗体上画两个标签和一个命令按钮,其名称分别为Labe11、Labe12和Command1,然后编写如下程序: Private SUb fune(L As Label,By Val a As Integer) L.Caption="1234" a=a*a End Sub Private Sub Form. Load() LabeCaptlon="ABCD" LabeCapfion=10 End Sub Private SUb Command1_Click() a=Val(Label2.Caption) Callfunc(Labell,A)LabeCaption=a End Sub 程序运行后,单击命令按钮,在两个标签Labe11和Labe12中显示的内容分别是______。
A.ABCD和10
B.1234和100
C.ABCD和100
D.1234和10
第10题:
在下面的程序中,要求循环体执行四次,请填空。
Private Sub Command l-Click ()
x=l
Do While【 】
x=x+2
Loop
End Sub