Quiz Complete, well Done!
Column
Nested Arrays
9. The length of a 2 dimensional array is given by
for the rows and by [[len(array_name[0])]] for the columns.
A 2 dimensional array is also known as a
.
How do you declare a 2 dimensional array in C++?
10. To iterate over the elements of a 2 dimensional array, you can use nested
loops.
2D Array
1. The size of a 2 dimensional array is determined by the number of
and columns.
|
|
|
|
|
|
|
|
|
|
To initialize a 2 dimensional array, you need to specify the number of rows and
it will have.
What is the index of the first element in a 2 dimensional array?
Array Length
2. In a 2 dimensional array, the elements are accessed using
column_index.
To access a specific element in a 2 dimensional array, you need to specify both the
and column indices.
How do you iterate over all elements in a 2 dimensional array?
6. The indices of a 2 dimensional array range from
to rows-1 for the rows and from 0 to columns-1 for the columns.
How do you access an element in a 2 dimensional array?
Element
A 2 dimensional array can store elements of the same
.
Which of the following is a real-life example of a 2 dimensional array?