H2S井测试过程中,注意观察显示头气泡显示和环空液面变化情况,做好防喷和关井工作。
H2S井测试过程中,注意观察显示头气泡显示和环空液面变化情况,做好防喷和关井工作。
相关考题:
执行下列的程序,消息框里显示的结果是______。Pfivate Sub Form_Click()Dim Str As StringStr=""S="Access"For i=Len(S) To 1 Step-1Str=StrMid(S.i,1)Next IMsgBox StrEnd Sub
在窗体上画一个命令按钮和两上文体,其名称分别为 Command1 、 Text1 和 Text2 ,然后编写如下程序:Dim S1 As String, S2 As StringPrivate Sub Form_Load()Text1. Text=””Text2. Text=””End SubPrivate Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)S2=s2 Chr(KeyCode)End SubPrivate Sub Text1_KeyPress(KeyAscii As Integer)S1=S1 chr(KeyAscii)End SubPrivate Sub Command1_Click()Text1.Text=S2Text2.Text=S1S1=""S2=""End Sub程序运行后,在Text1中输入"abc",然后单击命令按钮,在文本框 Text1 和 Text2 中显示的内容分别为( )。A.abc 和 ABCB.abc 和 abcC.ABC 和 abcD.ABC 和 ABC
在通用声明中定义a,在窗体中添加一个命令按钮Command1,编写如下程序代码:DimaAsIntegerSubtest()a=a+1:b=b+1:c=c+1PrintSub:;a;,;b;,;cEndSubPrivateSubCommand1_Click()a=2:b=3:c=4CalltestCalltestEndSub程序运行后,单击命令按钮,窗体中将显示( )A.Sub:3,4,5Sub:4,5,6B.Sub:2,3,4Sub:2,3,4C.Sub:3,1,1Sub:4,1,1D.Sub:1,1,1Sub:1,1,1
在窗体上画一个命令按钮和两个文本框,其名称分别为Command1、Text1和Text2,然后编写如下程序: Dim S1 As String,S2 As String Private Sub Form_Load() Text1.Text="" Text2.Text="" End Sub Private Sub Text1_KeyDown(KeyCode As Integer,Shift As Integer) S2=S2 Chr(Keycode) End Sub Private Sub Text1_KeyPress(KeyAscii As Integer) S1=S1 Chr(KeyAscii) End Sub Private Sub Command1_Click() Text1.Text=S2 Text2.Text=S1 S1="" S2="" End Sub 程序运行后,在Text1中输入“abc”,然后单击命令按钮,在文本框Text1和Text2中显示的内容分别为______。A.abc和ABCB.abc和abeC.ABC和abcD.ABC和ABC
在窗体上添加一个按钮(cmd) ,编写如下程序:Private sub crud_click( )Dim s, iFori = 1 to 10s=s+iNextMsgbox sEnd sub程序运行后,单击按钮,在消息框中显示的信息为 【 】 。
窗体上有两个按钮:显示(cmdshow)按钮和测试按钮(cmdtest),显示按钮初始状态不可见,当单击测试按钮,弹出一个消息框,包括“确定”和“取消”按钮,若单击“确定”则显示“显示”按钮,若单击“取消”则关闭窗体。试将程序补充完整。Private sub cmdtest_click( )answer = msgbox ( "显示按钮", vbOkCancel)If answer = vbOK thencmdshow. visible = 【 】Elsedocmd. closeEnd IfEnd sub
(10)在窗体上设计两个复选框,一个显示粗体,另一个显示斜体,通过对复选框的选择,在一个文本框中显示相应效果的文本,请完成下列程序。 Private Sub Form_Load() Check1.Caption="显示粗体" Check2.Caption="显示斜体" Text1Text="May you a happy day!" End Sub Private Sub Check1_Load() If=1 Then Text1.FontBold=True Else Text1.FontBold=False Else If End Sub Private Sub Check2_Load() If Check2.Vaiue=1 Then Text1._____ Else Text1._____ End If End Sub
窗体上有退出(cmdexit)按钮和测试按钮(cmdtest)以及一个文本框txt,当单击测试按钮时,弹出一个消息框,消息框中包括“确定”和“取消”按钮,若单击“确定”按钮则在文本框中显示“显示”,若单击“取消”按钮则在文本框中显示“取消”。单击退出按钮关闭窗体。试将程序补充完整。Private sub cmdtest_click()answer=msgbox("显示钮按", vbOkCancel)If 【 】 thentxt="显示"Elsetxt="取消"End IfEnd subPrivate sub cmdexit_click()【 】End sub
执行下列程序,输入框中显示的默认字符串为上【 】:Private Sub Command l_Click ()Input Box”ok”“输入参数”,Format(”GHl2”’End Sub
执行下面的程序,消息框里显示的结果是_______。Private Sub Form_Click()Dim Str As StringStr=""S="Access"Fori=Len(S)To 1 Step-lStr=StrMid(S,i,1)Next iMsgBox StrEnd Sub
现有如下程序: Private Sub Command1_Click() s=0 For i=1 To 5 s=s+f(5+i) Next Print s End Sub Public Function f(x As Integer) If x>=10 Then t=x+1 Else t=x+2 End If f=t End Function 运行程序,则窗体上显示的是( )。A.38B.49C.61D.70
编写如下事件过程: Private sub sub1 (ByVal x1 As String, y1 As String) Dim xt As String Dim i As Integer i = Len(x1) Do While i>= 1 xt = xt + Mid(x1, i, 1) i=i-1 Loop y1 = xt End Sub Private Sub Form. Click() Dim s1 As String, s2 As String s1= "teacher" sub1 s1, s2 Print s2 End Sub 程序运行后,单击窗体,则窗体上显示的内容是A.rehcaetB.tahreeeC.themeeD.eerthea
写出程序运行的结果Public class BasePublic virtual string Hello() {return “Base”;}Public class Sub:BasePublic override string Hello() {return “Sub”;}1. Base b = new Base(); b.Hello;2. Sub s = new Sub(); s.Hello;3. Base b = new Sub (); b.Hello;4. Sub s = new Base(); s.Hello;
设计两CheckBox,一个显示粗体,一个显示斜体,通过对CheckBox的选择,在一个文本框中显示相应效果的文本,完成下列程序。Private Sub Form_Load()Check1.Caption="显示粗体"Check2.Caption="显示斜体"Text1.Text="Visual Basic6.0"End SubPrivate Sub Check1_Click()If _______=1 ThenText1.FontBold=TrueElseText1.FontBold=FalseEnd IfEnd SubPrivate Sub Check2_Click()If Check2.Value=1 ThenText1. ______ =TrueElseText1. _____ =FalseEnd Sub
执行下面的程序,消息框里显示的结果是( )。Private Sub Form_Click()Dim Str As String,S As String,k As IntegerS=StrFor k=Len(Str) To 1 Step -1S=S (Mid(Str,k,1)Next kEnd Sub
编写如下事件过程: Option Base 1 Private Sub Form Click() Dim x1()As Integer Dim i As Integer Dim s As Integer ReDim x1(3) For i = 1 To UBound(x1) x1(i)=i + 1 Next i Call sub1(x1) For i = 1 To UBound(x1) s = s + x1(i) Next i Print s End Sub Private Sub sub1(n()As Integer) Dim i As Integer ReDim Preserve n(5) For i = 3 To 5 n(i)=n(i-1)*2 Next i End Sub 程序运行后,单击窗体,则窗体上显示的内容是A.6B.12C.24D.47
完成下面的程序,使显示结果如下图所示。Private Sub Form_Click()FontSize=18Sample$s="【 】"x=(ScaleWidth-TextWidth(Sample$))/2y=(ScaleHeight-TextHeight(Sample$))/2CurrentX=xCurrentY=y【 】Sample$End Sub
在窗体中有一个标签Lablel,标题为“测试进行中”,有一个命令按钮Commandl,事件代码如下: Private Sub Commandl Click( )Lablel.Caption=”标签” End Sub Private Sub Form—Load( )Form.Caption=”举例” Commandl.Caption=”移动”End Sub 打开窗体后,单击命令按钮,屏幕显示( )。A.B.C.D.
已知两个窗体Form1、Form2,下列事件过程中,______可以实现单击窗体Form1的命令按钮时,显示窗体Form2,而窗体Form1消失。A.Private Sub Command1_ Click() LoadForm2 Form1. Hide End SubB.Private Sub Command1_ Click() Show Form2 Form1. Hide EndSubC.Private Sub Command1_ click() Show Form2 Form1. Hide End SubD.Private Sub Command1_ click()
在窗体上画一个名称为Command1的命令按钮,然后编写如下事件过程: Private Sub sub1(ByVal x As Integer, ByVal y As Integer, ByVal z As Integer) z=x * x+ y * y End Sub Private Sub Command1_Click() Dim a As Integer a = 8 Call sub1(1, 2,A)Print a End Sub 程序运行后,单击命令按钮,则窗体上显示的内容是A.8B.2C.5D.11
在窗体上画一个命令按钮和两个文本框,其名称分别为Command1、Text1和Text2,在属性窗口中把窗体的KeyPreview属性设置为True,然后编写如下程序: Diln S1 As String,S2 As String Private Sub Form. Load( ) Text1.Text="" Text2.Text="" Text1.Enabled=False Text2.Enabled=False End Sub Private Sub Form. KeyDown(KeyCode As Integer,Shift As Integer) S2=S2&Chr(KeyCode) End Sub Pri vate Sub Form. KeyPress(KeyAscii As Integer) S1=S1&Chr(KeyAscii) End Sub Private Sub Command1 Click( ) Text1.Text=S1 Text2.Text=S2 S1="" S2="" End Sub 程序运行后,先后按“a”、“b”、“c”键,然后单击命令按钮,在文本框Text1和Text2中显示的内容分别为( )。A.abc和ABCB.空白C.ABC和abcD.出错
运行下列程序:Private Sub Command1_Click( )Dim s1 As String * 1Dim s2 As Strings1 = aFor i = Asc(s1) To Asc(s1) + 4s2 = s2 Chr(i)Next iPrint s2End Sub单击Command1命令按钮后,则在窗体上显示的结果是( )。A.aB.abcdeC.aaaaD.s2
运行下列程序:Private Sub Form_Click( )a$ = 2b$ = 1Call abcd(a, b, c$, d$)Print c; dEnd SubPrivate Sub abcd(x$, y$, z$, s$)z = x + ys = x - yEnd Sub单击窗体后,则在窗体上显示的结果是( )。A.3 1B.1 3C.211D.显示出错信息
运行下列程序:Private Sub form_Click( )x = 8: y = 2Call fun1((x), y)Print x, yEnd SubPrivate Sub fun1(x, y)s = xx = s / yy = s Mod yEnd Sub单击窗体后,则在窗体上显示的结果是( )。A.4 2B.8 2C.8 0D.2 4
单选题煤矿井下的有害气体主要是由()、CO2、H2S、NO2、H2、NH3气体组成。ACOBpCHsub4/sub、SOsub2/sub/pCpSOsub2/sub、CO/pDpCO、CHsub4/sub、SOsub2/sub/p