Visual Basic - Chapter 3 Quiz

25 Questions

Settings
Please wait...
Visual Basic Quizzes & Trivia

This is the Chapter 3 Quiz for the Visual Basic. Net Textbook - Pinetree Secondary Programming


Questions and Answers
  • 1. 
    An event-driven application executes all the program code before responding to any events
    • A. 

      True

    • B. 

      False

  • 2. 
    The Visual Basic .NET IDE menu bar contains buttons that represent different actions.
    • A. 

      True

    • B. 

      False

  • 3. 
    A Visual Basic .NET project consists of several related files.
    • A. 

      True

    • B. 

      False

  • 4. 
    A Windows application interface includes at least one form.
    • A. 

      True

    • B. 

      False

  • 5. 
    The Text property of a Form object defines what is displayed in the title bar of the form.
    • A. 

      True

    • B. 

      False

  • 6. 
    The options displayed in an AutoList depend on what was typed just before the dot.
    • A. 

      True

    • B. 

      False

  • 7. 
    More than one radio button in a set can be selected at a time.
    • A. 

      True

    • B. 

      False

  • 8. 
    Comments affect the way statements execute
    • A. 

      True

    • B. 

      False

  • 9. 
    A numeric expression must be enclosed in quotation marks in an assignment statement.
    • A. 

      True

    • B. 

      False

  • 10. 
    There is no difference between the Name and Text properties of a control object.
    • A. 

      True

    • B. 

      False

  • 11. 
    What type of programming language is Visual Basic .NET?
    • A. 

      An assembly language

    • B. 

      A machine language

    • C. 

      An object-oriented language

    • D. 

      A low-level language

  • 12. 
       What can occur when the user interacts with an object?
    • A. 

      An application occurrence

    • B. 

      An event

    • C. 

      A handler

    • D. 

      Nothing

  • 13. 
      Which window displays the application interface and allows objects to be added, deleted, and sized?
    • A. 

      The Start window

    • B. 

      The Design window

    • C. 

      The Code window

    • D. 

      The application window

  • 14. 
     Which is a difference in the way a form looks between the Design window and run time?
    • A. 

      The form no longer displays a grid.

    • B. 

      The form changes color.

    • C. 

      The form gets much larger.

    • D. 

      The form displays each object’s Name property

  • 15. 
     Which control is used to add a menu to an interface?
    • A. 

      The Label control

    • B. 

      The Button control

    • C. 

      The MenuStrip control

    • D. 

      The AddMenu control

  • 16. 
     A set of instructions that tells the computer how to perform a specific task is called
    • A. 

      A form

    • B. 

      An interface

    • C. 

      Objects.

    • D. 

      Program code

  • 17. 
     Each line of code is called a(n)
    • A. 

      Form

    • B. 

      Comment.

    • C. 

      Statement.

    • D. 

      Instruction.

  • 18. 
      A Click event procedure responds to
    • A. 

      A mouse click.

    • B. 

      The pressing of a key on the keyboard

    • C. 

      Dragging the title bar.

    • D. 

      The movement of the mouse.

  • 19. 
      Which statement is used to stop program execution?
    • A. 

      End

    • B. 

      Halt

    • C. 

      Stop

    • D. 

      Quit

  • 20. 
     Which statement declares an event procedure?
    • A. 

      End

    • B. 

      End Sub

    • C. 

      End Procedure

    • D. 

      Sub

  • 21. 
      Which type of statement is used in a procedure to change a value at run time?
    • A. 

      A value statement

    • B. 

      A property statement

    • C. 

      An object statement

    • D. 

      An assignment statement

  • 22. 
     Which object is used to group related radio buttons?
    • A. 

      A Label object

    • B. 

      A GroupBox object

    • C. 

      A MainMenu object

    • D. 

      A Button object

  • 23. 
     Which character begins a comment?
    • A. 

      A colon (:)

    • B. 

      A double quotation mark (")

    • C. 

      A single quotation mark (')

    • D. 

      A question mark (?)

  • 24. 
        In the event procedure above, which type of object is clicked in order to execute the Click event procedure?
    • A. 

      A Label object

    • B. 

      A Button object

    • C. 

      A Form object

    • D. 

      A MenuItem object

  • 25. 
      In the event procedure above, what is the Name property of the Label object set to?
    • A. 

      BtnQuestion1

    • B. 

      LblAnswer

    • C. 

      LblAnswer.Text

    • D. 

      Answer