Quiz Complete, well Done!
Element
1. The size of a 2 dimensional array is determined by the number of
and columns.
Which of the following is the correct syntax to initialize a 2 Dimensional Array in C++?
To initialize a 2 dimensional array, you need to specify the number of rows and
it will have.
How do you find the number of columns in a 2 Dimensional Array?
3. The first element in a 2 dimensional array is located at
0 position.
Index
Rows
The first index of a 2 dimensional array refers to the
number.
|
|
|
|
|
|
|
|
|
|
Nested Arrays
7. To access a specific element in a 2 dimensional array, you use the syntax
row_indexcolumn_index.
Initialization
The second index of a 2 dimensional array refers to the
number.
How do you access an element in a 2 dimensional array?
Array Size
How do you declare a 2 Dimensional Array in Java?
Traversal
Elements
To traverse all elements in a 2 dimensional array, you can use nested
.