Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please assist, thank you! Exercise 8-3: Using Multidimensional Arrays In this ex

ID: 3772450 • Letter: P

Question

Please assist, thank you!

Exercise 8-3: Using Multidimensional Arrays

In this exercise, you use what you have learned about using multidimensional arrays to answer Questions 1–3.

1.

A two-dimensional array declared as Dim MyNums(6,2) As Integer has how many rows?

_______________________________________________________

2.

A two-dimensional array declared as Dim MyNums(6,2) As Integer has how many columns?

_______________________________________________________

3.

Consider the following array declaration: Dim MyNums(6,2) As Integer Are the following Visual Basic statements legal?

Number = MyNums(5,3) ___________________________________

Number = MyNums(0,1) ___________________________________

Number = MyNums(1,2) ___________________________________

Explanation / Answer

1.A two-dimensional array declared as Dim MyNums(6,2) As Integer has how many rows?
Ans : 6 rows.
2.A two-dimensional array declared as Dim MyNums(6,2) As Integer has how many columns?
Ans :2 columns.
3. Consider the following array declaration:
Dim MyNums(6,2) As Integer Are the following Visual
Basic statements legal?
Number = MyNums(5,3) : Invalid
Number = MyNums(0,1) : Valid
Number = MyNums(1,2) : Invalid