Visual Basic .Net (Quiz No. 4)

20 Questions | Total Attempts: 1652

SettingsSettingsSettings
Please wait...
Visual Basic Quizzes & Trivia

The quiz is the evaluation of the following topics: message box, input box, sub and function procedures.


Questions and Answers
  • 1. 
    A function procedure does not return a value.
    • A. 

      True

    • B. 

      False

  • 2. 
    InputBox.Show("Input your grade:", "4th Quarter", "99.99") The above code is a correct declaration for the input box.
    • A. 

      True

    • B. 

      False

  • 3. 
    The input box has a default buttons of Ok and Cancel.
    • A. 

      True

    • B. 

      False

  • 4. 
    The MsgBoxStyle is used to display the buttons like Yes/No/Cancel in a message box.
    • A. 

      True

    • B. 

      False

  • 5. 
    The Chr(10) is used to go to the next line.
    • A. 

      True

    • B. 

      False

  • 6. 
    An input box is used to display the information to the user and you cannot type anything on this dialog box.
    • A. 

      True

    • B. 

      False

  • 7. 
    We have three (3) types of procedures in VB.NET.
    • A. 

      True

    • B. 

      False

  • 8. 
    The codes sub grade(ByVal G As Long) and public sub grade(ByVal G As Long) are the same.
    • A. 

      True

    • B. 

      False

  • 9. 
    A function procedure returns a value to the calling code which is different from a sub procedure.
    • A. 

      True

    • B. 

      False

  • 10. 
    The access modifier defines the accessibility of a procedure or function.
    • A. 

      True

    • B. 

      False

  • 11. 
    MessageBox.Show("Hello!", "Greetings!", MessageBoxButtons.OkCancel, MessageBoxIcon.Exclamation)The underline words in the above code will display a question mark inside the message box.
    • A. 

      True

    • B. 

      False

  • 12. 
    A function procedure is a block of code enclosed within the sub and end sub statements.
    • A. 

      True

    • B. 

      False

  • 13. 
    MessageBox.Show("How are you today?", "Greetings!")The underline word in the above code will be displayed inside the message box.
    • A. 

      True

    • B. 

      False

  • 14. 
    We can call a sub procedure by using the function name.
    • A. 

      True

    • B. 

      False

  • 15. 
    A sub procedure is a block of code enclosed within the function and end function statements.
    • A. 

      True

    • B. 

      False

  • 16. 
    The arguments are the values passed to the parameters of a procedure or function.
    • A. 

      True

    • B. 

      False

  • 17. 
    The private access modifier is the default access mode in VB.NET.
    • A. 

      True

    • B. 

      False

  • 18. 
    A procedure declared with the friend keyword is accessible from within the program that contains its declaration and from anywhere else in the same assembly.
    • A. 

      True

    • B. 

      False

  • 19. 
    A message box is used to request a value from the user.
    • A. 

      True

    • B. 

      False

  • 20. 
    A procedure declared with the public keyword is accessible from anywhere within and outside of the application.
    • A. 

      True

    • B. 

      False