

MCQOPTIONS
Saved Bookmarks
This section includes 5 Mcqs, each offering curated multiple-choice questions to sharpen your Visual Basic knowledge and support exam preparation. Choose a topic below to get started.
1. |
Which of the following assigns the string Rover to the fifth element in a one-dimensional array named strPetNames? |
A. | strPetNames(4) = Rover |
B. | strPetNames[4] = Rover |
C. | strPetNames(5) = Rover |
D. | strPetNames.Items.Add(5) = Rover |
Answer» B. strPetNames[4] = Rover | |
2. |
Which of the following statements assigns (to the intElements variable) the number of elements contained in the intNums array? |
A. | intElements = Len(intNums) |
B. | intElements = Length(intNums) |
C. | intElements = intNums.Len |
D. | intElements = intNums.Length |
Answer» E. | |
3. |
__________________ method is used to reverse the values. |
A. | Array.Reverse |
B. | Array.Sort Desc |
C. | Array.Sort Asc |
D. | Array.rev |
Answer» B. Array.Sort Desc | |
4. |
Arranging data in a specific order is called as ___________ |
A. | Arranging |
B. | Sorting |
C. | Organizing |
D. | Making |
Answer» C. Organizing | |
5. |
________ method is used to sort an array in visual basic. |
A. | Array.arrange() |
B. | Array.arrayArrange() |
C. | Array.Sort() |
D. | Array.sortAscending() |
Answer» D. Array.sortAscending() | |