What code would you employ?

You are employed as a developer at ABC.com. You make use of Visual Basic .Net for
development purposes.
You have written the code shown below for declaring an array of a new application:
Dim myArray as String = { apples, pears, plums, grapes, oranges, bananas}
You want to return the third item in your array.
What code would you employ?

You are employed as a developer at ABC.com. You make use of Visual Basic .Net for
development purposes.
You have written the code shown below for declaring an array of a new application:
Dim myArray as String = { apples, pears, plums, grapes, oranges, bananas}
You want to return the third item in your array.
What code would you employ?

A.
myArray[1]

B.
myArray[2]

C.
myArray[3]

D.
myArray[4]

E.
myArray[5]

F.
myArray[6]



Leave a Reply 3

Your email address will not be published. Required fields are marked *


CCH

CCH

B, the arrays are zero based in VB. The third element in myArray is plums:
myArray[0] = apples
myArray[1] = pears
myArray[2] = plums
……………….