[单选题]

设有如下通用过程: Public FunctionFun(x Str As String)As String DimtStr As String,strL As Integer tStr="" strL=Len(xStr) i=1 DoWhilei<=strL/2 tStr=tStr&Mid(xStr,i,1)&Mid(xStr,strL-i+1,1)" i=i+1 Loop Fun=tStr End Function 在窗体

A.ABCDEF

B.abcdef

C.AFBECD

D.DEFABC

参考答案与解析:

相关试题

设有如下通用过程:Public Function Fun(xStr As Str

[单选题]设有如下通用过程:Public Function Fun(xStr As String)D.im tStr As String, srtL As IntegertStr+" "strL=Len(xStr)i=1D.o While i <=strL/2tStr=tStr &Mid(xStr,i ,1)& Mid (xStr ,strL-i+1,1)i=i+1LoopF.un=tStrE.nd Function在窗体上画一个名称为 Textl 的文本框和一个名称为 Comm

  • 查看答案
  • 设有如下通用过程:Public Function Fun(xStr As Str

    [单选题]设有如下通用过程: Public Function Fun(xStr As String)As String Dim tStr As String,strL As Integer tStr="" strL=Len(xStr) i=1 Do While i<=strL/2 tStr=tStr & Mid(xStr,i,1) & Mid(xStr,strL-i+1,1) i=i+1 Loop Fun=tStr End Function 在窗体上画一个名称为Text1的文本框和一个

  • 查看答案
  • 设有如下通用过程:Pubfic Function Fun(xStr As Str

    [单选题]设有如下通用过程:Pubfic Function Fun(xStr As String)As StringD.im tStr As String,strL As Integertstr=“”strL=Len(xStr)i=1D.o While i<=strL/2tStr=tStr&Mid(xStr,i,1)&Mid(xStr,strL-i+1,1)i=i+1LoopF.un=tStrE.ndFunction在窗体上画一个名称为Commandl的命令按钮。然后编写如下的事件过程:Privat

  • 查看答案
  • 设有如下通用过程:Public Sub Fun(a(),By Val x As

    [单选题]设有如下通用过程: Public Sub Fun(a(),By Val x As Integer) Fori=1 To 5 x=x+a(i) Next End Sub 在窗体上画一个名称为Text1的文本框和一个名称为Commandl的命令按钮,然后编写如下的事件过程: Private Sub Commandl_Chck() Dimart(5)As Variant Fori=1 To 5 arr(i)=iA.10B.15C.25D.24

  • 查看答案
  • 设有如下通用过程:Public Sub Fun(a()As Integer,x

    [单选题]设有如下通用过程: Public Sub Fun(a()As Integer,x As Integer) For i=1 To 5 x=x+a(i) Next End Sub 在窗体上画一个名称为Text1的文本框和一个名称为Commandl的命令按钮。然后编写如下的事件过程: Private Sub Commandl_Click() Dim arr(5)As Integer,n As Integer For i=1 To 5 arr(i)=i+i Next Fun arr,n Text1.Te

  • 查看答案
  • 设有如下通用过程:Public Sub Fun(a()As Integer,x

    [单选题]设有如下通用过程: Public Sub Fun(a()As Integer,x As Integer) For i=1 To 5 x=x+a(i) Next End Sub 在窗体上绘制一个名称为Text1的文本框和一个名称为Command1的命令按钮。然后编写如下的事件过程: Private Sub Command1_Click() Dim arr(5) As Integer,n AsInteger For i=1 To 5 arr(i)=i+i Next Fun arr,n Text1.T

  • 查看答案
  • 设有如下通用过程:Public Function f(x As Integer)

    [单选题]设有如下通用过程: Public Function f(x As Integer) Dim y As Integer x = 20 y = 2 f = x * y End Function 在窗体上画一个名称为Command1的命令按钮,然后编写如下事件过程: Private Sub Commandl Click() Static x As Integer x = 10 y = 5 y = f(x) Print x;y End Sub 程序运行后,如果单击命令按钮,则在窗体上显示的内容是A.10

  • 查看答案
  • 设有如下通用过程:Public Function f(x As Integer)

    [单选题]设有如下通用过程: Public Function f(x As Integer) Dim y As Integer x=20 y=2 f=x*y End Function 在窗体上画一个名称为Command1的命令按钮,然后编写如下事件过程: Private Sub Command1_Click() Static x As Integer x=10 y=5 y=f(x) Print x; y End Sub 程序运行后,如果单击命令按钮,则在窗体上显示的内容是______。A.10 5B.20

  • 查看答案
  • 设有如下通用过程:Public Function f(x As Integer)

    [单选题]设有如下通用过程: Public Function f(x As Integer) Dim y As Integer x=20 y=2 f=x*y End Function 在窗体上画一个名称为Command1的命令按钮,然后编写如下事件过程; Private Sub Command1_Click() Static x As Integer x=10 y=5 y=f(x) Print x;y End Sub 程序运行后,如果单击命令按钮,则在窗体上显示的内容是( )。A.10 5B.20 5C.

  • 查看答案
  • 设有如下通用过程:Public Sub Fun(a(),ByVal x As I

    [单选题]设有如下通用过程: Public Sub Fun(a(),ByVal x As Integer) For i=1 To 5 x=x+a(i) Next End Sub 在窗体上画一个名称为Text1的文本框和一个名称为Command1的命令按钮,然后编写如下的事件过程: Private Sub Command1_Click() Dim arr(5)As Variant For i=1 To 5 arr(i)= i Next n=10 Call Fun(arr(),n) Text1.Text=n

  • 查看答案