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
Answer: Option C
Related Questions on Visual Basic
Which of the following extension is used to represent the project file in Visual Basic?
A. .vbp
B. .vb
C. .cls
D. .vvb
Which of the following applications can be developed using Visual Basic tool?
A. Graphical User Interface
B. Real-time
C. Character User Interface
D. All of the mentioned
In visual basic language what are the rules of a programming language called?
A. Grammar
B. Order
C. Syntax
D. Rules

Join The Discussion