Visual Basic Questions Test! Quiz

10 Questions | Total Attempts: 558

SettingsSettingsSettings
Please wait...
Visual Basic Questions Test! Quiz

Are you familiar with Visual Basic? Do you believe you can beat this quiz? Microsoft’s Visual Basic provides the latest updates to the Microsoft Visual Studio Development System. It is one of the highly popular tools for obtaining applications on Windows. It allows you to assemble the established applications as executable files. Taking this test and discover how much you know about visual basic.


Questions and Answers
  • 1. 
    The ______ symbol is used for concatenation.
    • A. 

      & (ampersand)

    • B. 

      @ (at)

    • C. 

      ' (apostrophe)

    • D. 

      _ (underscore)

  • 2. 
    If you would like to change the background color on a form, you must change the form's _____________ property.
    • A. 

      ForeColor

    • B. 

      BackColor

    • C. 

      Appearance

    • D. 

      Background

  • 3. 
    As a program runs, the insertion point can be moved from control to control.  In order to reset the focus back in a text box named name textbox, you should use the code _______.
    • A. 

      TxtName.Focus()

    • B. 

      TxtName = Focus()

    • C. 

      TxtName = Top()

    • D. 

      TxtName.First()

  • 4. 
    Which of the following statements will clear the contents of a text box named message textbox?
    • A. 

      TxtMessage.Text = ""

    • B. 

      TxtMessage.Clear()

    • C. 

      TxtMessage.Text = String.Empty

    • D. 

      All of the answers are correct

  • 5. 
    Setting the TabIndex of a control to 0 (zero) will _______.
    • A. 

      Cause the control to appear to the right of the other controls

    • B. 

      Make the control Visible

    • C. 

      Align the control to the left of the other controls

    • D. 

      Set the focus on this control when the program begins running

  • 6. 
    Create keyboard access on an object by ______________ in the Text property.
    • A. 

      Using ampersand (&)

    • B. 

      Using at (@)

    • C. 

      Using underscore ( _)

    • D. 

      Capitalizing the first letter of the word

  • 7. 
    You can vertically align a group of controls on your form by first selecting all of the controls to be aligned, and then _______.
    • A. 

      Setting their X property to the same value

    • B. 

      Selecting Align from the Format menu and then choosing Lefts.

    • C. 

      Selecting "Make Same Size" from the Layout toolbar

    • D. 

      Setting their Height property to the same value

  • 8. 
    The property used to display information in a TextBox is _______.
    • A. 

      Caption

    • B. 

      Name

    • C. 

      Text

    • D. 

      Appearance

  • 9. 
    Which of the following is not an object?
    • A. 

      Form

    • B. 

      GroupBox

    • C. 

      RadioButton

    • D. 

      All of the above are objects

  • 10. 
    You can break a long line of code into multiple lines by ________ and then continuing writing code on the next line.
    • A. 

      Pressing the Enter key at the end of the line

    • B. 

      Adding a blank space and a plus sign ( + ) at the end of the line

    • C. 

      Adding a blank space and an ampersand ( & ) at the end of the line

    • D. 

      Adding a blank space and an underscore ( _ ) at the end of the line

Back to Top Back to top