Visual Basic Programming - Prelim

50 Questions | Total Attempts: 127

SettingsSettingsSettings
Visual Basic Quizzes & Trivia

Questions and Answers
  • 1. 
    A high level programming language evolved from the earlier DOS version called BASIC.
    • A. 

      Visual Basic

    • B. 

      Java

    • C. 

      C++

    • D. 

      COBOL

  • 2. 
    A block of code that is executed when an object is manipulated in a program.
    • A. 

      Event Procedure

    • B. 

      Program Statement

    • C. 

      Structural Procedure

    • D. 

      Procedural Program

  • 3. 
    A tool used to create objects on a Visual Basic form.  It is used to create user interface elements.
    • A. 

      Control

    • B. 

      Method

    • C. 

      Property

    • D. 

      Class

  • 4. 
    The  result  (or  act)  of  hiding  the  implementation  details  (information hiding) of an object from its user.
    • A. 

      Encapsulation

    • B. 

      Abstraction

    • C. 

      Inheritance

    • D. 

      Polymorphism

  • 5. 
    This is where you type in the code that VB executes. The heading of the window indicates with which event the code is associated.
    • A. 

      Project Window

    • B. 

      Property Window

    • C. 

      Code Window

    • D. 

      Form Window

  • 6. 
    This property corresponds to the “contents” of a control and can be modified by end user.
    • A. 

      Text Property

    • B. 

      Caption Property

    • C. 

      Back Color Property

    • D. 

      Fore Color Property

  • 7. 
    This event fires when the input focus leaves it and passes to another control.
    • A. 

      Lost Focus

    • B. 

      Got Focus

    • C. 

      Click

    • D. 

      Change Event

  • 8. 
    It is used to display static text, titles and screen output from operations.
    • A. 

      Label Control

    • B. 

      Text Box Control

    • C. 

      Combo Box Control

    • D. 

      Check Box Control

  • 9. 
    A combo box-like control that’s automatically filled with your drive’s letters and volume labels.
    • A. 

      DriveListBox

    • B. 

      FileListBox

    • C. 

      DirListBox

    • D. 

      Combo List Box

  • 10. 
    It is a special-purpose ListBox control that displays all the files in a given directory, optionally filtering them based on the names, extensions, and attributes.
    • A. 

      Combo List Box

    • B. 

      DirListBox

    • C. 

      FileListBox

    • D. 

      DriveListBox

  • 11. 
    It is used to group related set of controls.
    • A. 

      Option Button

    • B. 

      Frame Control

    • C. 

      Label Control

    • D. 

      List Box Control

  • 12. 
    It avoid unnecessary use of variables that are not declared or mistyped name of variables.
    • A. 

      Option Explicit

    • B. 

      Implicit

    • C. 

      Default

    • D. 

      Static

  • 13. 
    The name of a user interface element you create on a Visual Basic form by  using  a  toolbox  control.
    • A. 

      Objects

    • B. 

      Control

    • C. 

      Class

    • D. 

      Method

  • 14. 
    This is the only element of the IDE which is always visible.
    • A. 

      Project Window

    • B. 

      Main Window

    • C. 

      Code Window

    • D. 

      Form Layout Window

  • 15. 
    This is simply a library of controls which can be placed on the application.
    • A. 

      Project Window

    • B. 

      Toolbox

    • C. 

      Code Window

    • D. 

      Main Window

  • 16. 
    It is where   the   user   interface   is   actually designed.
    • A. 

      Code Window

    • B. 

      Main Window

    • C. 

      Form Window

    • D. 

      Project Window

  • 17. 
    It appears inside a control and can’t be directly modified by users.
    • A. 

      Text Property

    • B. 

      Caption Property

    • C. 

      Picture Property

    • D. 

      Back Color Property

  • 18. 
    It fires when a control receives the input focus.
    • A. 

      Got Focus

    • B. 

      Double Click

    • C. 

      Change Event

    • D. 

      Click

  • 19. 
    It is used to give the user a single choice from several options.
    • A. 

      Check Box

    • B. 

      Option Button

    • C. 

      List Box

    • D. 

      Label

  • 20. 
    A control that provides a yes/no option to the user.
    • A. 

      Check Box

    • B. 

      Option Button

    • C. 

      List Box

    • D. 

      Label

  • 21. 
    A number format having decimal places.
    • A. 

      Single

    • B. 

      Date

    • C. 

      Object

    • D. 

      Integer

  • 22. 
    A special data type that contain numeric, string or date as well as the special values Empty and Null.
    • A. 

      Variant

    • B. 

      Boolean

    • C. 

      Object

    • D. 

      String

  • 23. 
    An event that occurs when the user left-clicks on a control.
    • A. 

      Click

    • B. 

      Got Focus

    • C. 

      DblClick

    • D. 

      Lost Focus

  • 24. 
    A method of a list box where it deletes the item of index n from the list.
    • A. 

      RemoveItem

    • B. 

      ListCount

    • C. 

      ListIndex

    • D. 

      AddItem

  • 25. 
    A control in VB that is invisible during run time.
    • A. 

      Timer

    • B. 

      List Box

    • C. 

      Text Box

    • D. 

      Label

Back to Top Back to top