9 Apr, 2007
VB Interview Questions
- 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
- 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
- You need to carry out conditional compilation
- None of the above
- What is the extension of the Visual Basic project file that stores the design of a user control.
- .ctx
- .ctl
- .ctr
- .ocx
- .vbp
- .dll
- .ucl
- .utl
- A __________ control defaults to displaying the files in the current directory:
- File List Box
- Dir List Box
- Drive List Box
- Combo Box
- Picture Box
- List Box
- Combo Box
- DataGrid
- To destroy an object and free the memory space occupied by it, the keyword used is:
- Delete
- Kill
- Nothing
- New
- Calloc
- New
- Conserve
- Free
- Which event of a text box would you use for validating the data entered by the user?
- Validate
- Validation
- Check
- Audit
- GotFocus
- Checkdata
- ValidateDate
- Which of the following statements forces inline error handling?
- On Error GoTo linelabel
- On Error GoTo Inline
- On Error Stop
- On Error Resume Next
- On Error GoTo 0
- On Error Resume
- None of the above
- The _______ method resets the contents of bound controls to their original values when the user clicks on the cancel button.
- UpdateControls
- PaintPicture
- Refresh
- Resize
- Resync
- Restore
- Cancel
- Update
- To deactivate the Form UnLoad event, you make the following change in the function definiton:
Private Sub Query_Unload(Cancel as Integer,UnloadMode as Integer)
To prevent the Form from closing, you will set the:
- Cancel parameter to a non-zero value
- Cancel parameter to 0
- UnloadMode parameter to a non-zero value
- UnloadMode parameter to a zero value
- UnloadMode parameter to 1
- Cancel parameter to 1
- How many root nodes can a TreeView control have?
- 1
- 2
- 3
- 4
- 5
- 10
- Up to 50
- No limit