VB Interview Questions

VB Interview Questions

  1. You are creating a client application that calls ActiveX DLLs. Which of the following properties of the Err object provides the name of a component that sends an error back to the client application?
    • Number
    • Description
    • CompName
    • Component
    • Source
    • Text
    • Desc
    • None of the above
  2. If the Cancel Error Property of the CommonDialog Box is set to true then which of the following statement is true:
    • A runtime error can result if the user clicks the cancel button
    • A compile time error occurs
    • The program executes without any error

VB Interview Questions 2

  1. A project group is a Project which:
    • Consists of several Programs
    • Consists of several Applications
    • Consists of Various Forms And Code Modules
    • Consists of several Projects
  2. Procedures declared in a _____ are local whereas procedures declared in a ______ are available to the whole application.
    • Form window, standard or code module
    • Project window, view code window
    • Class module, code module
  3. How can you keep the user from exiting a form by clicking the Close button?
    • Place code in the Terminate event
    • Place code in the Unload event
    • Place code in the QueryUnload event

VB Interview Questions 3

  1. Which event is triggered when the user moves to another open form?
    • Unload
    • QueryUnload
    • Deactivate
    • Terminate
    • Load
    • Initialize
    • Repaint
    • Resize
  2. Which event of an ActiveX control data provider runs every time a bound control extracts data through the provider?
    • GetDataMember
    • GetDataField
    • GetDataProperty
    • GetDataRow
    • GetData
    • GetFields
    • GetRows
    • RetrieveData
  3. Which of the following are not properties of Command Button:
    • Caption
    • Visible
    • Multi-Line
    • Font
    • Name
    • Bold
    • Tag
    • Enabled

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

VB Interview Questions 5

  1. What does the forms collection contain?
    • A list of all forms in a project
    • A list of all hidden forms
    • A list of all currently loaded forms
    • A list of all visible forms
    • All the child forms of an MDI application
  2. Which method of the Recordset object should you use to navigate multiple recordsets returned by a stored procedure?
    • NewRecordset
    • NavigateRecordset
    • OpenNextRecordset
    • NextRecordset
    • SkipRecordset
    • PreviousRecordset
    • JumpRecordset
    • GoTORecordset
  3. Which of the following cannot be included in the Open method of the recordset?
    • Cursor Type
    • User Name

Pages (5): « 1 [2] 3 4 5 »