adplus-dvertising
frame-decoration

Question

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: (a).strPetNames(4) = “Rover”

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following assigns the string “Rover” to the fifth element in a one-dimensional array named strPetNames?