VB Interview Questions 3
- Which event is triggered when the user moves to another open form?
- Unload
- QueryUnload
- Deactivate
- Terminate
- Load
- Initialize
- Repaint
- Resize
- 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
- Which of the following are not properties of Command Button:
- Caption
- Visible
- Multi-Line
- Font
- Name
- Bold
- Tag
- Enabled
- You are creating an ActiveX component that raises user-defined errors. Which of the following statements correctly raises an error to the client with error number 20000?
- Err.Raise vbObjectError + 20000
- Err.Number = 20000
- Err.Raise 20000
- Err.Raise vbObjectError,20000
- Err.Number 20000
- Error.Raise vbObjectError + 20000
- Error.Number 20000
- Error.Raise 20000
- Which events enable you to determine which key was pressed by the user?
- Click and KeyPress
- Click, KeyUp and KeyDown
- KeyUp and KeyDown
- KeyPress, KeyUp and KeyDown
- Click, KeyPress, KeyUp and KeyDown
- In order to access a file in Non-textual format, you have to open file in:
- Ascii Format
- Binary Format
- Input Mode
- Output mode
- Append mode
- Read Mode
- Visual Basic displays information depending upon the current value of two properties of the form, called:
- CurrentX and CurrentY
- ScaleLeft and ScaleTop
- ScaleHeight and ScaleTop
- x and y
- TopX and TopY
- LeftX and LeftY
- Which of the following procedure types will execute when you assign a value to a property of an object?
- Property Get
- Property Assign
- Property Let
- Property Set
- Public Sub
- In order to overlap the controls (say a command button) during design time, we use the ‘Send To Back’ or ‘Bring To Front’ option from the Edit menu. To change it dynamically (i.e.during program execution) we need to change:
- Background color property
- Caption property
- ZOrder property
- AutoRedraw property
- SendtoBack property
- BringtoFront property
- Hide property
- Show property
- Name the only property supported by a collection?
- Name
- Index
- Count
- Type
- Value
- Add
- Remove
- None of the above























