编写如下事件过程: 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, s

题目

编写如下事件过程: 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.rehcaet

B.tahreee

C.themee

D.eerthea


相似考题
更多“编写如下事件过程: Private sub sub1 (ByVal x1 As String, y1 As String) Dim xt As String Dim ”相关问题
  • 第1题:

    String、StingBuffer都是( )类,都不能被继承。

    A.static

    B.abstract

    C.final

    D.private


    正确答案:C
    解析:final为最终类,该类不能有子类。

  • 第2题:

    要求:

    1. 按如下类图写出相应数据库建表 sql 脚本。 其中 Student 和 Score 是1 对多的关系,Scroe 和 Course

    是多对 1 的关系。

    Student

    -id: String

    -name: String

    -birthday: Date

    -address: String

    -phone: String

    -email: String

    Score

    -student: Student

    -course: Course

    -grade: float

    Course

    -id: String

    -name: String

    -description: String


    正确答案:
     

  • 第3题:

    Given:Andthefollowingfivefragments:publicstaticvoidmain(String...a){publicstaticvoidmain(String.*a){publicstaticvoidmain(String...a){publicstaticvoidmain(String[]...a){publicstaticvoidmain(String...[]a){Howmanyofthecodefragments,insertedindependentlyatline2,compile?()

    A.0

    B.1

    C.2

    D.3

    E.4


    参考答案:D

  • 第4题:

    编写类 String 的构造函数、析构函数和赋值函数

    已知类 String的原型为:

    class String

    {

    public:

    String(const char *str = NULL); // 普通构造函数

    String(const String &other); // 拷贝构造函数

    ~ String(void); // 析构函数

    String & perate =(const String &other); // 赋值函数

    private:

    char *m_data; // 用于保存字符串

    };

    请编写 String的上述 4 个函数。


    正确答案:
     

  • 第5题:

    String、StingBuffer都是( )类,都不能被继承。

    A.static

    B.abstract

    C.final

    D.private


    正确答案:C
    C。【解析】final为最终类,该类不能有子类。

  • 第6题:

    以下哪个main方法是正确的?

    A.public static void main(string[] args)

    B.public static void Main(String[] args)

    C.public static void main(String[] args)

    D.public static main(String[] args)

    E.public void main(String[] args)


    public static void main(String[] args)