Vidyalelo
Computer Science · Q370

Visual Basic MCQs: Test Your Proficiency in Visual Basic Programming

Engineering and GATE · Computer Science · question 370

Q370

Which of the following assigns the string "Rover" to the fifth element in a one-dimensional array named strPetNames?

A.
strPetNames(4) = "Rover"
Answer
B.
strPetNames[4] = "Rover"
C.
strPetNames(5) = "Rover"
D.
strPetNames.Items.Add(5) = "Rover"

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board