adplus-dvertising
frame-decoration

Question

An array is declared using the statement Dim inventory(4) As Product. Which of the following statements assigns the number 100 to the intQuantity member variable contained in the last array element?

a.

inventory.intQuantity(4) = 100

b.

inventory(4).Product.intQuantity = 100

c.

inventory(3).intQuantity = 100

d.

inventory(4).intQuantity=100

Posted under Visual Basic

Answer: (c).inventory(3).intQuantity = 100

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. An array is declared using the statement Dim inventory(4) As Product. Which of the following statements assigns the number 100 to the intQuantity member variable contained in the...