Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What is a one-dimensional array?
Think of it as a single line of items.
How do you access the first element in a one-dimensional array?
Remember, indexing starts from zero!
What is the maximum number of dimensions an array can have?
Think about how complex data structures can be.
True or False: An array can only hold elements of different data types.
Consider the definition of an array.
Create a program that initializes a 3x3 two-dimensional array filled with values 1 to 9 and prints it.
Remember to use nested loops for printing rows and columns.
Define a 4x4 multi-dimensional array and assign it values such that each index is the sum of its indices.
Use nested loops again, and think about how to assign values based on indices.
5 more questions in this section. Enroll free to practise them all.
Enroll free