Visual Basic Fundamentals
Covers Visual Basic forms, controls, properties, events, methods, variables, and string handling functions
Questions
Which of the following properties of form sets back colour of the form?
- Appearance
- Borderstyle
- BackColour
- None of these
Which of the following drag events in VB will be occured after the drag and a drop operation is in progress?
- DragDrop Event
- DragMode Property
- DragOver Event
- None of these
Which of the following scaling properties of control supports graphics such as form, picture box and image control, which returns the horizontal coordinates for the left edges of an object?
- ScaleTop
- ScaleWidth
- ScaleLeft
- None of these
Which of the following methods of form is used to display the forms loaded into memory?
- Load
- Unload
- Show
- None of these
Which of the following events of Form is fired before the form closes to give you a chance to cancel the unloading of the forms?
- Query unload
- Load
- Activate
- None of these
Which of the following values of the Draw Style Property of control, like form and picture box, sets the draw style as dash?
- '0'
- '1'
- '2'
- '5'
Which of the following properties of text box, when set to false, allows a user to edit the text?
- SelStart
- SelLength
- Locked
- SelText
Which of the following functions returns a specified number of characters from the right side of a string?
- Left$ function
- Right$ function
- Mid$ function
- None of these
Which of the following properties of form is used to disable or enable the maximize button on the form?
- MinButton
- MaxButton
- ControlMenu
- None of these
Which of the following controls in VB facilitates the user to schedule certain events in the program?
- Form
- Timer
- Combo Box
- None of these
Which of the following properties of List Box returns the number of selected items in a List Box Control?
- ListCount
- ListIndex
- SelectCount
- None of these
__________ menu in VB contains commands for aligning and sizing control on the form.
- View
- Debug
- Format
- File
___________ type of variable in VB has a scope within the procedure or function, where it is defined.
- Public
- Private
- Dim
- None of these
Which of the following properties of Label control, when set to true, allows a user to automatically set the dimension of the label control according to text length?
- Caption
- AutoSize
- BackStyle
- None of these
What is the value of solid fill style property in VB?
- '1'
- '0'
- '2'
- None of these
Which of the following modules in VB is/are called as code encapsulating tool(s), used in the design and development of forms?
- Standard Module
- Form modules
- Class module
- None of these
Which of the following string handling functions in VB returns a string consisting of specified number of spaces?
- StrReverse
- Space$
- String$
- None of these
____________ is the property of form that determines the style of the forms border and the appearance of the form.
- Appearance
- BackColour
- Borderstyle
- None of these
_____________ is the property of the Textbox that returns or sets length of selected text.
- SelLength
- SelStart
- SelText
- None of these
______________ is the form event, which is fired when the form becomes the active window.
- Initialize
- Load
- Deactivate
- Activate
Which of the following way of passing arguments to a procedure allows a special calling convention to be used that explicitly indicates the argument to be provided and the associated value?
- Positional Arguments
- Named Arguments
- Exit Sub
- None of these
Which of the following properties in Shape control indicates the appearance of a shape control as a circle or a rectangle?
- BackStyle
- BorderColor
- Shape
- None of these
______________ is a common method of a control in VB that forces a complete repaint of objects.
- Clear
- Move
- Z-order
- Refresh
____________ is the property of Listbox that returns or sets a value, which determines whether a user can make multiple selections in a control.
- ListIndex
- Multiselect
- ListCount
- ItemData