Vb Programming - Midterm

50 Questions | Total Attempts: 635

SettingsSettingsSettings
Visual Basic Quizzes & Trivia

Questions and Answers
  • 1. 
    It allows the programmer to alter the normal flow of statement execution.
    • A. 

      Control Structures

    • B. 

      Event

    • C. 

      Modularization

    • D. 

      Function Call

  • 2. 
    An action is taken if the condition is true, otherwise the control goes to the next statement.
    • A. 

      If Statement

    • B. 

      Select Case Block

    • C. 

      ElseIf Statement

    • D. 

      Do While Loop

  • 3. 
    An extension of the If block allows for more than two possible alternatives.
    • A. 

      If Statement

    • B. 

      Select Case Block

    • C. 

      ElseIf Statement

    • D. 

      Do While Loop

  • 4. 
    Type of control structure where in an action to be selected from a list of alternatives.
    • A. 

      Select Case Block

    • B. 

      If Statement

    • C. 

      Do While Loop

    • D. 

      Do Until Loop

  • 5. 
    An alternative to be used instead of nested If statement.
    • A. 

      Select Case Block

    • B. 

      If Statement

    • C. 

      Do While Loop

    • D. 

      Do Until Loop

  • 6. 
    It is the process of repeating a series of statements as many times as needed.
    • A. 

      Looping

    • B. 

      Function Call

    • C. 

      Sub Procedure Call

    • D. 

      Modularization

  • 7. 
    A variable used to determine whether a loop will be executed.
    • A. 

      Loop Control Variable

    • B. 

      Local Variable

    • C. 

      Global Variable

    • D. 

      Variant

  • 8. 
    The statement(s) that are executed each time a loop repeats.
    • A. 

      Loop Body

    • B. 

      Execution Statement

    • C. 

      If Statement

    • D. 

      Select Case Statement

  • 9. 
    The loop body is executed as long as the condition is True.
    • A. 

      Do While Loop

    • B. 

      Do Until Loop

    • C. 

      For Next Loop

    • D. 

      ElseIf Statement

  • 10. 
    If condition is False then the next statement after the Loop is executed.
    • A. 

      Do While Loop

    • B. 

      Do Until Loop

    • C. 

      For Next Loop

    • D. 

      ElseIf Statement

  • 11. 
    This controlling loop repeat a specific number of times.
    • A. 

      Counter-controlled loops

    • B. 

      Event-controlled loops

    • C. 

      Condition-controlled loops

    • D. 

      Do Until Loop

  • 12. 
    It is also known as iteration.
    • A. 

      Looping

    • B. 

      Function Call

    • C. 

      Method Call

    • D. 

      Sub Procedure Call

  • 13. 
    It is repeated until something happens in the loop body to change the value of loop control variable.
    • A. 

      Counter-controlled loops

    • B. 

      Do Until Loop

    • C. 

      Event-controlled loops

    • D. 

      Condition-controlled loops

  • 14. 
    Type of loop structure that is executed until the condition becomes True.
    • A. 

      Do Until Loop

    • B. 

      Do While Loop

    • C. 

      For Next Loop

    • D. 

      For Loop

  • 15. 
    A Function that tells us if we have reached the end of a file.
    • A. 

      EOF Function

    • B. 

      Val Function

    • C. 

      Sqr Function

    • D. 

      Ucase Function

  • 16. 
    Any Do While Loop can be rewritten as a Do Until Loop.
    • A. 

      True

    • B. 

      False

  • 17. 
    If there are more records to be read, EOF is True
    • A. 

      True

    • B. 

      False

  • 18. 
    When the end-of-file marker is reached; EOF becomes True.
    • A. 

      True

    • B. 

      False

  • 19. 
    A numeric variable that keeps track of the number of items that have been processed in the loop.
    • A. 

      Counter

    • B. 

      Accumulator

    • C. 

      Constant

    • D. 

      Variant

  • 20. 
    A numeric variable that totals numbers.
    • A. 

      Counter

    • B. 

      Accumulator

    • C. 

      Constant

    • D. 

      Variant

  • 21. 
    It is used to create a counting loop.
    • A. 

      For Next Loop

    • B. 

      Do While Loop

    • C. 

      Do Until Loop

    • D. 

      If

  • 22. 
    A loop control variable has initial value, terminating value and step value.
    • A. 

      True

    • B. 

      False

  • 23. 
    It breaks the program into subtasks.
    • A. 

      Function

    • B. 

      Looping

    • C. 

      Modularization

    • D. 

      Normalization

  • 24. 
    Sub procedure or Function performs a well- defined task.
    • A. 

      True

    • B. 

      False

  • 25. 
    Sub and Looping are two types of procedure.
    • A. 

      True

    • B. 

      False

Back to Top Back to top