CPROG1 MIDTERM
  • 1. Arrays only stores a fixed-size sequential collection of elements of the same type
A) False
B) True
  • 2. How many elements is found in this array: Dim A(10) As String
A) 11
B) 10
C) 9
  • 3. What VB method you can use to reverse an array of integer values?
A) Array.reverse
B) Array.maxtomin
C) Array.righttoleft
D) Array.arrange
  • 4. Dim scores As Integer()() = New Integer(5)(){}
A) Not valid
B) Valid array
  • 5. How many elements is found in this array: Dim A(1) As Integer
A) 2
B) 1
C) 0
  • 6. What VB method you can use to arrange from lowest to highest an array of integer values?
A) Array.mintomax
B) Array.arrange
C) Array.sort
D) Array.fix
  • 7. Dynamic arrays are arrays that can be dimensioned and re-dimensioned as par the need of the program.
A) True
B) False
  • 8. How many elements is found in this array: Dim strData(20) As String
A) 19
B) 20
C) 21
  • 9. Array is used to store a collection of data like normal variables.
A) True
B) False
  • 10. What method can you use to change the dimension of the array?
A) Array.Alter
B) Array.New
C) ReDim
D) ReChange
  • 11. Dim twoDStringArray(10, 20) As String This array is valid or not?
A) Not valid
B) Valid array
  • 12. Dim threeDIntArray(10, 10, 10) As Integer
A) Not valid
B) Valid array
  • 13. Array as a collection of variables of different types.
A) False
B) True
  • 14. VB.Net allows multidimensional arrays.
A) False
B) True
  • 15. You can still change the dimension of an already declared array inside the program itself.
A) False
B) True
Created with That Quiz — where test making and test taking are made easy for math and other subject areas.