Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What is the purpose of an array?
Think about how lists work in everyday life.
How do you access the first element in an array?
What does indexing start with?
What does an array allow you to do?
Think about the definition of an array.
Is the first element of an array accessed by index 1?
Remember how indexing begins.
Given an array of integers, write a function to calculate the sum of all elements.
Consider using a loop to iterate through the array.
Explain how you would create a two-dimensional array and access an element at row 1, column 2.
Remember the syntax for multi-dimensional arrays.
4 more questions in this section. Enroll free to practise them all.
Enroll free