Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

True / False Questions 1- The following code is valid: Dim NameString() As Strin

ID: 3640682 • Letter: T

Question

True / False Questions

1- The following code is valid: Dim NameString() As String = {"Theresa", "Anita", "Julia")


2- Each element in an array can have its own unique data type.


3. An exception is automatically thrown if a subscript is used that is not a valid element in an array.

4. A For Each loop will execute even if the array contains no elements.


5. The Structure / End Structure statements may be used to represent a record of related fields of information.


6. Code to create a user-defined Structure should be placed inside the procedure in which the structure will be used.

7. A Structure is private by default, but can be declared to be Friend or Private.


8. "Vendor" is the name of the array in the following code:
Structure Vendor
Dim VendorIDString As String
Dim NameString As String
Dim PhoneString As String
End Structure
Dim BusinessVendor(5) As Vendor

9. The SelectedIndex property of a list box can be used as an array subscript to find an item in a list box.

10. The first subscript in a multidimensional array specifies the column, and the second specifies the row.


11. Collections are less sophisticated than arrays and do not define any properties or methods.

12. The SortedList collection automatically sorts entries as they are added to the collection.




Explanation / Answer

1. True 2. True 3. True 4. False 5. True 6. False 7. True 8. True 9. False 10. True 11. True 12. False

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote