Visual Basic Fundamentals

Covers Visual Basic forms, controls, properties, events, methods, variables, and string handling functions

24 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which of the following properties of form sets back colour of the form?

  1. Appearance
  2. Borderstyle
  3. BackColour
  4. None of these
Question 2 Multiple Choice (Single Answer)

Which of the following drag events in VB will be occured after the drag and a drop operation is in progress?

  1. DragDrop Event
  2. DragMode Property
  3. DragOver Event
  4. None of these
Question 3 Multiple Choice (Single Answer)

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?

  1. ScaleTop
  2. ScaleWidth
  3. ScaleLeft
  4. None of these
Question 4 Multiple Choice (Single Answer)

Which of the following methods of form is used to display the forms loaded into memory?

  1. Load
  2. Unload
  3. Show
  4. None of these
Question 5 Multiple Choice (Single Answer)

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?

  1. Query unload
  2. Load
  3. Activate
  4. None of these
Question 6 Multiple Choice (Single Answer)

Which of the following values of the Draw Style Property of control, like form and picture box, sets the draw style as dash?

  1. '0'
  2. '1'
  3. '2'
  4. '5'
Question 7 Multiple Choice (Single Answer)

Which of the following properties of text box, when set to false, allows a user to edit the text?

  1. SelStart
  2. SelLength
  3. Locked
  4. SelText
Question 8 Multiple Choice (Single Answer)

Which of the following functions returns a specified number of characters from the right side of a string?

  1. Left$ function
  2. Right$ function
  3. Mid$ function
  4. None of these
Question 9 Multiple Choice (Single Answer)

Which of the following properties of form is used to disable or enable the maximize button on the form?

  1. MinButton
  2. MaxButton
  3. ControlMenu
  4. None of these
Question 10 Multiple Choice (Single Answer)

Which of the following controls in VB facilitates the user to schedule certain events in the program?

  1. Form
  2. Timer
  3. Combo Box
  4. None of these
Question 11 Multiple Choice (Single Answer)

Which of the following properties of List Box returns the number of selected items in a List Box Control?

  1. ListCount
  2. ListIndex
  3. SelectCount
  4. None of these
Question 12 Multiple Choice (Single Answer)

__________ menu in VB contains commands for aligning and sizing control on the form.

  1. View
  2. Debug
  3. Format
  4. File
Question 13 Multiple Choice (Single Answer)

___________ type of variable in VB has a scope within the procedure or function, where it is defined.

  1. Public
  2. Private
  3. Dim
  4. None of these
Question 14 Multiple Choice (Single Answer)

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?

  1. Caption
  2. AutoSize
  3. BackStyle
  4. None of these
Question 15 Multiple Choice (Single Answer)

What is the value of solid fill style property in VB?

  1. '1'
  2. '0'
  3. '2'
  4. None of these
Question 16 Multiple Choice (Single Answer)

Which of the following modules in VB is/are called as code encapsulating tool(s), used in the design and development of forms?

  1. Standard Module
  2. Form modules
  3. Class module
  4. None of these
Question 17 Multiple Choice (Single Answer)

Which of the following string handling functions in VB returns a string consisting of specified number of spaces?

  1. StrReverse
  2. Space$
  3. String$
  4. None of these
Question 18 Multiple Choice (Single Answer)

____________ is the property of form that determines the style of the forms border and the appearance of the form.

  1. Appearance
  2. BackColour
  3. Borderstyle
  4. None of these
Question 19 Multiple Choice (Single Answer)

_____________ is the property of the Textbox that returns or sets length of selected text.

  1. SelLength
  2. SelStart
  3. SelText
  4. None of these
Question 20 Multiple Choice (Single Answer)

______________ is the form event, which is fired when the form becomes the active window.

  1. Initialize
  2. Load
  3. Deactivate
  4. Activate
Question 21 Multiple Choice (Single Answer)

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?

  1. Positional Arguments
  2. Named Arguments
  3. Exit Sub
  4. None of these
Question 22 Multiple Choice (Single Answer)

Which of the following properties in Shape control indicates the appearance of a shape control as a circle or a rectangle?

  1. BackStyle
  2. BorderColor
  3. Shape
  4. None of these
Question 23 Multiple Choice (Single Answer)

______________ is a common method of a control in VB that forces a complete repaint of objects.

  1. Clear
  2. Move
  3. Z-order
  4. Refresh
Question 24 Multiple Choice (Single Answer)

____________ is the property of Listbox that returns or sets a value, which determines whether a user can make multiple selections in a control.

  1. ListIndex
  2. Multiselect
  3. ListCount
  4. ItemData