Quiz Complete, well Done!
What is the index of the first element in a 2 dimensional array?
What is the maximum number of dimensions a multidimensional array can have in most programming languages?
Which of the following is a real-life example of a 2 dimensional array?
How do you declare a 2 dimensional array in C++?
8. A 2 dimensional array can be used to represent a
or a table.
What is the number of rows in the following 2 dimensional array?
int arr[3][4];
How do you find the number of rows in a 2 Dimensional Array in Java?
A 2 dimensional array is also known as a
.
Initialization
2. In a 2 dimensional array, the elements are accessed using
column_index.
9. The length of a 2 dimensional array is given by
for the rows and by [[len(array_name[0])]] for the columns.
Which of the following is the correct syntax to initialize a 2 Dimensional Array in C++?
10. To iterate over the elements of a 2 dimensional array, you can use nested
loops.
Access
What is a 2 Dimensional Array?
Elements
To access a specific element in a 2 dimensional array, you need to specify both the
and column indices.
A 2 dimensional array can store elements of the same
.
1. The size of a 2 dimensional array is determined by the number of
and columns.
What is the syntax for accessing an element in a 2 Dimensional Array?