Short Test 1 - 3rd Term

15 Questions | Total Attempts: 182

SettingsSettingsSettings
Please wait...
Programming Quizzes & Trivia

.


Questions and Answers
  • 1. 
    1. It permits a set of instructions to be repeated until a condition is reached.
    • A. 

      Array

    • B. 

      Loop

    • C. 

      Condition

    • D. 

      Flowchart

  • 2. 
    2. A loop in visual basic that executes a block of statements for a specific number of times.
    • A. 

      Do Loop

    • B. 

      While Loop

    • C. 

      Do Until Loop

    • D. 

      For Loop

  • 3. 
    3. A loop that the code execution continues until the condition is met.
    • A. 

      Do Until Loop

    • B. 

      Do While Loop

    • C. 

      For Loop

    • D. 

      While Loop

  • 4. 
    4. A loop that executes the code while the condition is still being met.
    • A. 

      While Loop

    • B. 

      Do Until Loop

    • C. 

      Do While Loop

    • D. 

      For Loop

  • 5. 
    5. It is a boolean expression that should be satisfied for the loop to continue executing.
    • A. 

      Statements

    • B. 

      Condition

    • C. 

      Operation

    • D. 

      Start

  • 6. 
    6. Which of the following is the correct syntax of For Loop?
    • A. 

      For var = Int to End //Statements Next

    • B. 

      For var = Start to End //Statements Next

    • C. 

      For var Next = Start //Statements End

    • D. 

      For Next Var = End //Statements Start

  • 7. 
    7. It is a collection of data having the same type stored in one name.
    • A. 

      Loop

    • B. 

      Repetition

    • C. 

      Index

    • D. 

      Array

  • 8. 
    8. It represents an array in the program.
    • A. 

      Index

    • B. 

      Array Name

    • C. 

      Dim

    • D. 

      Element

  • 9. 
    9. It refers to values inside an Array.
    • A. 

      Elements

    • B. 

      Variables

    • C. 

      Index

    • D. 

      Data Type

  • 10. 
    10. An integer assigned to an array element to specify its position within the array.
    • A. 

      Index

    • B. 

      Element

    • C. 

      Integer

    • D. 

      Dim

  • 11. 
    11. An index of an array starts in _____.
    • A. 

      1

    • B. 

      0

    • C. 

      2

    • D. 

      0 and 1

  • 12. 
    12. Dim StudentName () As String = {“Mae”, “Alex”, “Bernice”, “Cherries”} What element in this array has an index of 2?
    • A. 

      Alex

    • B. 

      Mae

    • C. 

      Bernice

    • D. 

      Cherries

  • 13. 
    13. Dim StudentName () As String = {“Mae”, “Alex”, “Bernice”, “Cherries”} What is the name of the array?
    • A. 

      String

    • B. 

      StudentName

    • C. 

      Dim

    • D. 

      As

  • 14. 
    14. Which of the following is not a data type in Visual Basic?
    • A. 

      Boolean

    • B. 

      String

    • C. 

      Double

    • D. 

      Dim

  • 15. 
    15. A set of values used to initialize each element in an array.
    • A. 

      Initial Values

    • B. 

      Subscript

    • C. 

      Data Types

    • D. 

      Array Name