Visual Basic - Chapter 5 Quiz

15 Questions | Total Attempts: 788

SettingsSettingsSettings
Please wait...
Visual Basic Quizzes & Trivia

Here is the Chapter 5 Quiz for Visual Basic. NET programming Good Luck and best of luck to you all next semester!


Questions and Answers
  • 1. 
     The If…Then statement executes a set of statements when a condition is False.
    • A. 

      True

    • B. 

      False

  • 2. 
     A Boolean expression evaluates to True or False.
    • A. 

      True

    • B. 

      False

  • 3. 
      The indentation used in an If…Then…Else statement has an effect on the execution of the statement.
    • A. 

      True

    • B. 

      False

  • 4. 
     An If…Then…Else statement that contains another If…Then statement is said to be nested.
    • A. 

      True

    • B. 

      False

  • 5. 
      A Select…Case statement uses the result of an expression to determine which block of code to execute.
    • A. 

      True

    • B. 

      False

  • 6. 
     An algorithm is a set of steps that tell how to solve a problem.
    • A. 

      True

    • B. 

      False

  • 7. 
     Pseudocode consists of only program code.
    • A. 

      True

    • B. 

      False

  • 8. 
     A static variable is declared with the keyword Dim.
    • A. 

      True

    • B. 

      False

  • 9. 
     In logical expressions, And is evaluated before Not.
    • A. 

      True

    • B. 

      False

  • 10. 
    Operator precedence can be changed by using parentheses.
    • A. 

      True

    • B. 

      False

  • 11. 
     Only one check box can be selected at a time.
    • A. 

      True

    • B. 

      False

  • 12. 
     A counter variable is a variable storing a number that is incremented by a constant value.
    • A. 

      True

    • B. 

      False

  • 13. 
     Using Rnd() without including Randomize() will produce an error.
    • A. 

      True

    • B. 

      False

  • 14. 
     A roundoff error could occur when:
    • A. 

      A comparison is made between floating point numbers.

    • B. 

      An Integer data type is used instead of a Long data type.

    • C. 

      A statement violates the rules of Visual Basic .NET.

    • D. 

      A comparison is made between whole numbers.

  • 15. 
    Which statement should be used to decide among three or more actions?
    • A. 

      If…Then statement

    • B. 

      If…Then…Else statement

    • C. 

      Nested If…Then…Else statement

    • D. 

      If…Then…ElseIf statement