VB Interview Questions 4



  1. Which of the following situations would not cause the Initialize event of an ActiveX control to occur?
    • When a control is placed on a form at design time
    • When a form designer containing a control is closed
    • When a form is run
    • When a compiled application containing a control executes
    • When an application terminates and re-enters design-time for the host application
  2. Which event occurs only once in the entire life cycle of an ActiveX control?
    • Initialize
    • Resize
    • Terminate
    • WriteProperties
    • InitProperties
    • Activate
    • None of the above
  3. You are creating an ActiveX component that raises user-defined errors. What is the valid range of error numbers that you can use for user-defined errors?
    • 1-1000
    • 0-255
    • 1-65535
    • 0-1000
    • 513-65535
    • 1000-2000
    • 10000-20000
    • None of the above
  4. Which property of the ProgressBar determines how much of the bar is filled?
    • Min
    • Max
    • Value
    • CurrentVal
    • FillValue
    • Fill
    • BarComplete
  5. The ______ function can be used to run any .com, .exe, .bat or .pif file from a Visual Basic program.
    • Shell
    • Substr
    • SetAttr
    • CStr
    • Exec
    • Perform
    • Do
    • None of the above
  6. One can convert a Visual Basic Application into ActiveX Document using:
    • Visual Database Manager
    • Application Wizard
    • ActiveX Document Migration Wizard
    • Package and Deployment Wizard
  7. The caption and the name properties of the command button:
    • Are one and the same
    • Can be different at times
    • Are actually not properties
  8. You try to initialize a new Object variable with the following line but receive an error. What could be the possible cause?
    Set MyVar = New Classname

    • You do not need to use the Set command here
    • You do not have the permission to access the class
    • MyVar has not been declared
    • You do not need to use the New keyword here
    • None of the above
  9. Which of the following will perform a direct execution of a Command object?
    • The Execute method
    • The Prepare method
    • The ExecDirect method
    • The Open method
    • The Exec method
    • The ExecProcedure method
    • None of the above
  10. The vbCritical symbol displays:
    • A warning query icon
    • A critical message icon
    • A warning message icon
    • An exclamation icon
    • None of the above


Leave a comment

Name: (Required)

eMail: (Required)

Website:

Comment: