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.
Define what an array is in your own words.
Think about how items are stored in a single line.
What is the index of the first element in an array?
Remember, we start counting from zero in arrays.
What type can an array hold?
Focus on the definition of an array.
True or False: The first element of an array is accessed using index 0.
Think about how we start counting in programming.
Create a program that takes user input to fill an array and then prints the sum of all its elements.
Focus on using a loop to calculate totals.
Design a two-dimensional array to represent a simple game board of 3x3 and print it.
Remember to use both looping structures for a 2D array.
5 more questions in this section. Enroll free to practise them all.
Enroll free