1. What is the main advantage of adding a reference to an object library? 
a) The ability to reference objects of the object library
b) The ability to user the set method.
c) The ability to use early binding.
d) The ability to use late binding.2. Which advantage does early binding have over late binding? 
a) Better execution speed
b) Early bound objects can be passed to other objects, late bound objects can not.
c) Early bound objects can have events, late bound objects can not.
d) Early binding provides syntax checking before encountering an error at runtime, and late binding does not.3. Form 1 has variable declared as follows Public ICount as Integer. The application starts with the Sub Main procedure and the first line executed is Form1.iCount = 5
Which Form1 event or events will be triggered by this statement? 
a) Initialize only
b) Load only
c) Initialize and load
d) Activate and load4. You are creating an application that has a form with required data fields. You have placed an "Ok" button on the form for the user to click when they have finished entering data on the form. If the user has failed to enter data in a required field, which statement should you use to stop the form from unloading so that you can prompt the user to enter the missing data? 
a) Cancel = True ‘In QueryUnload
b) Cancel = False ‘In QueryUnload
c) Cancel = True ‘In Unload
d) Cancel = False ‘In Unload5. Which three steps are required in order to create a reference to an Excel Chart object that is defined in a object library? 
a) Establish a reference to the type library using a DLL
b) Assign an object reference to the variable by using the Implements keyword
c) Declare a variable of the object’s class like: 
                                Dim xlChart as createobject(Excel.Chart)
d) Declare a variable of the object's class like: 
                                Dim xlChart as createobject("Excel.Chart")6. What is the purpose of the Friend keyword? 
a) to make a procedure in a class available only within the class which it is defined.
b) to make a procedure in a class available to modules outside that class, including modules in other applications.
c) to make a procedure in a class available to modules outside that class, but within the same application.
d) to make a procedure in a class available to in-process components.7. You are monitoring a global variable and want to suspend program execution when its value changes. Which debugging tool should you use? 
a) Watch window
b) Suspend window
c) Variables window
d) Locals window and e) Immediate window8. Examine the following code:
        Sub Test()
            Static X 
            If X > 3 then
                Exit Sub
            Else X = X + 1
                Call Test
            End If
        End Sub        What happens when the Test procedure is called? 
a) A stack overflow error occurs
b) It runs and completes execution without error
c) A General Protection fault occurs
d) It runs until you forcefully shutdown the application9. You want to remember a form's state so that when it is opened again, it will appear the same. What function call would you use, and in which event procedure would you place it? 
a) SaveRegSetting in the Form_Unload event
b) SaveRegSetting in the Form_Deactivate event
c) SaveSetting in the Form_QueryUnload even
d) SaveSetting in the Form_Unload event10.    How do you instantiate an instance of a VB class?11.    How would you run Excel from a VB app?12.    Briefly explain how you would go about error handling in a VB app.13.    For what purpose would you use a .RES file? What are the benefits?14.    Explain the use of the Let and Get keywords in a VB class?15.    What are 2 types of ActiveX servers? Explain.16.    What is the difference between a class and an object?17.    What are the main numeric types available in VB? What are the advantages and disadvantages of each?

解决方案 »

  1.   

    呵呵,我乱写的,仅供娱乐用途……你的问题是什么微软VB认证考试的题目么?
    1.c
    2.b c d
    3.c
    4.a
    5.not b
    6.d
    7.a
    8.b
    9.d
    10.using new keyword with either dim or set statement
    11.
    using createobject for late binding
    or  
    reference the excel object lib prior to using early binding
    12.
    first setting up an error trap,and behaves accordingly to the suceeding error
    13.
    for use of bitmap,ico and etc. 
    14.
    for giving or retriving  a property of a class
    15.
    they r in/out-process server
    in-process server runs in the same process context as the calling thread while out-process server does the constrast
    16.
    an object is an intance of a class,which does the real work
    17.
    byte
    integer
    long
    single
    double
    currency
      

  2.   

    不是,是一家公司的笔试题.可是偶只会java .55555555