Explore topic-wise MCQs in Visual Basic Questions and Answers.

This section includes 1 Mcqs, each offering curated multiple-choice questions to sharpen your Visual Basic Questions and Answers 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”