VB.Net Practice Exam: Quiz!

56 Questions | Total Attempts: 1758

SettingsSettingsSettings
VB.Net Practice Exam: Quiz! - Quiz

.


Questions and Answers
  • 1. 
    If a project runs without a syntax error, you can be certain that the code has performed the project's task correctly.
    • A. 

      True

    • B. 

      False

  • 2. 
    If the programmer does not write code for a button control, Visual Basic automatically provides code in the Click procedure that will close the form when the user clicks the button.
    • A. 

      True

    • B. 

      False

  • 3. 
    After you have added a label to a form you can change the words that are displayed inside the button by changing the Text property.
    • A. 

      True

    • B. 

      False

  • 4. 
    You write Visual Basic code statements during design time.
    • A. 

      True

    • B. 

      False

  • 5. 
    You can use the Properties window to change the properties of controls during run time.
    • A. 

      True

    • B. 

      False

  • 6. 
    You are in run time when you design the user interface.
    • A. 

      True

    • B. 

      False

  • 7. 
    The Solution Explorer window is where you design a form that makes up your user interface.
    • A. 

      True

    • B. 

      False

  • 8. 
    The Properties window is used to set the properties for the objects on your form.
    • A. 

      True

    • B. 

      False

  • 9. 
    The .resx file is a text file that defines all resources used by the form including any graphics that are displayed on the form.
    • A. 

      True

    • B. 

      False

  • 10. 
    When creating a project in Visual Basic you should always begin by writing the Basic code.
    • A. 

      True

    • B. 

      False

  • 11. 
    A .vb file holds the definition of a form, its controls, and code procedures.
    • A. 

      True

    • B. 

      False

  • 12. 
    Writing a program in Visual Basic is so easy that it is not necessary to do any planning.
    • A. 

      True

    • B. 

      False

  • 13. 
    With Visual Basic you can write computer programs that run in the Microsoft Windows environment.
    • A. 

      True

    • B. 

      False

  • 14. 
    Visual Basic.NET is an object-oriented programming language.  
    • A. 

      True

    • B. 

      False

  • 15. 
    In Form1.Text, the word Text is referring to a method.
    • A. 

      True

    • B. 

      False

  • 16. 
    The ______ symbol is used for concatenation.
    • A. 

      & (ampersand)

    • B. 

      @ (at)

    • C. 

      ' (apostrophe)

    • D. 

      _ (underscore)

  • 17. 
    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

  • 18. 
    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 nameTextBox you should use the code _______.
    • A. 

      TxtName.Focus()

    • B. 

      TxtName = Focus()

    • C. 

      TxtName = Top()

    • D. 

      TxtName.First()

  • 19. 
    Which of the following statements will clear the contents of a text box named messageTextBox?
    • A. 

      TxtMessage.Text = ""

    • B. 

      TxtMessage.Clear()

    • C. 

      TxtMessage.Text = String.Empty

    • D. 

      All of the answers are correct

  • 20. 
    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

  • 21. 
    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

  • 22. 
    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

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

      Caption

    • B. 

      Name

    • C. 

      Text

    • D. 

      Appearance

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

      Form

    • B. 

      GroupBox

    • C. 

      RadioButton

    • D. 

      All of the above are objects

  • 25. 
    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