VB Interview Questions 6
- Which property of the form changes the form’s title?
- Name
- Heading
- Title
- Caption
- Logo
- Labels do not respond to _____ and ______ events.
- Got_Focus, Lost_Focus
- Click, DblClick
- Dragdrop, OLECompleteDrag
- Change, Link Error
- Which of the following statements is capable of abandoning a series of modifications made to a recordset locked with a BatchOptimistic lock?
- CancelUpdate
- CancelBatch
- CancelBatchUpdate
- AbandonBatch
- AbandonBatchUpdate
- Rollbackupdate
- Rollbackbatch
- None of the above
- Which three methods does the collection object support?
- Let, Get, Set
- Load, Unload, Count
- Add, Remove, Item
- Add, Delete, Index
- Add, Remove, Sort
- Add, Remove, Count
- Add, Delete, Count
- Add, Set, Count
- Which line of code listed here can be used to create a string of fixed length:
- Dim strFirstName as String
- strFirstName * 255
- strFirstName = 255
- Dim strFirstName as String(255)
- None of the above
- Consider the following program code:
(i) Dim FileName as String
Open FileName For Input As #FreeFile
(ii) Dim FileName as String
FileNum = FreeFile
Open FileName For Input As #FileNum
- Both (i) and (ii) are correct
- Only (i) is correct
- Only (ii) is correct
- (i) contains a logical error
- (ii) contains an error
- Both (i) and (ii) contain errors
- Which property of the Err object returns the numeric value associated with the most recent runtime error?
- Description
- No
- Number
- Source
- Errorcode
- Num
- Code
59 ) In Visual Basic, which method can you use to send key strokes to other Window applications?
- AppActivate
- SendKeys
- Copying the contents from the ClipBoard & pasting
- Manually typing in the other application’s Window
- The ______ property is used to show Tool Tips or Help Balloons when the mouse rests on the object:
- ToolTipText
- Tag
- Dragmode
- ShowTips
- Help
- Tip
- ShowHelp
- Tab
- What is the sequence in which the following events are triggered when a form is loaded?
- Initialize, Load, Resize and Paint
- Initialize, Load, Paint and Resize
- Load, Initialize, Resize and Paint
- Load, Initialize, Paint and Resize
- Initialize, Resize, Paint and Load
- Load, Paint, Initialize and Resize
- Initialize, Paint, Load and Resize
- Paint, Resize, Initialize and Load
- Which parameter of the WriteProperty method can be omitted but should be included to increase the efficiency of the control?
- Name
- Value
- Caption
- PropBag
- DefaultValue
- Title
- Tag
- None of the above























