0
0
Intro to Computingfundamentals~5 mins

Arrays and lists in Intro to Computing - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is an array?
An array is a collection of items stored at contiguous memory locations. Think of it like a row of mailboxes where each mailbox holds one item and has a number (index) to find it quickly.
Click to reveal answer
beginner
How is a list different from an array?
A list is like a flexible container that can hold items of different types and can grow or shrink in size. An array usually holds items of the same type and has a fixed size.
Click to reveal answer
beginner
What does 'index' mean in arrays and lists?
An index is a number that shows the position of an item in an array or list. It usually starts at 0, so the first item is at index 0, the second at index 1, and so on.
Click to reveal answer
intermediate
Why do arrays have fixed size?
Arrays have fixed size because they reserve a block of memory all at once. This makes accessing items fast but means you can't add more items than the size you set.
Click to reveal answer
beginner
Give a real-life example of a list.
A shopping list is a good example. You can add or remove items anytime, and the list can have different types of things like fruits, bread, or cleaning supplies.
Click to reveal answer
What is the starting index of an array in most programming languages?
A1
B0
C-1
DDepends on the language
Which of these is true about lists compared to arrays?
ALists have fixed size
BLists always hold only numbers
CLists can change size dynamically
DLists store items in random order
If you want to access the third item in a list, which index do you use?
A2
B3
C1
D0
Why might you choose an array over a list?
AWhen you need fast access and fixed size
BWhen you want to store different types of data
CWhen you want to add items anytime
DWhen you want to store items in no order
Which of these is NOT a characteristic of arrays?
AFixed size
BContiguous memory storage
CIndexed access
DCan hold different data types easily
Explain what arrays and lists are, using a real-life analogy.
Think about how you organize things at home or in daily life.
You got /3 concepts.
    Describe the main differences between arrays and lists.
    Focus on size and type flexibility.
    You got /4 concepts.