S0-SA1-0606
What is an Array?
Grade Level:
Pre-School – Class 2
All domains without exception
Definition
What is it?
An array is like a special box where you can keep many similar things together, one after another. It's a way to store a list of items of the same type in an organised manner, making it easy to find them later.
Simple Example
Quick Example
Imagine you want to keep track of the scores your favorite cricket team made in their last 5 matches. Instead of writing each score separately, you can put them all into one 'array' like this: [180, 210, 155, 190, 205]. This array holds all the scores together.
Worked Example
Step-by-Step
Let's say your friend wants to list the prices of 4 different chai cups they bought today.
1. First chai price: 15 rupees
2. Second chai price: 20 rupees
3. Third chai price: 18 rupees
4. Fourth chai price: 20 rupees
---
To put these into an array, we just list them one after another inside square brackets.
---
We make sure all items are of the same type (prices, which are numbers).
---
The array would look like this: [15, 20, 18, 20].
---
Answer: The array of chai prices is [15, 20, 18, 20].
Why It Matters
Arrays are fundamental building blocks in computer programming and data management. They help organise information efficiently, whether it's managing customer lists for an e-commerce website or tracking sensor data for a space mission. Knowing arrays can set you on a path to becoming a software developer or a data scientist.
Common Mistakes
MISTAKE: Mixing different types of items in one array (e.g., numbers and words) | CORRECTION: An array usually holds items of the same type, like only numbers or only names. If you need different types, you might need a different data structure.
MISTAKE: Forgetting the order of items matters in an array | CORRECTION: The position of an item in an array is important. The first item is at position 0, the second at 1, and so on. Changing the order changes the array.
MISTAKE: Thinking an array can only hold a few items | CORRECTION: An array can hold a very large number of items, limited only by the computer's memory. You can have arrays with hundreds, thousands, or even millions of items.
Practice Questions
Try It Yourself
QUESTION: Your school library has 5 new books. Their prices are 250, 300, 180, 400, and 220 rupees. Write these prices as an array. | ANSWER: [250, 300, 180, 400, 220]
QUESTION: A delivery rider completed 3 deliveries today, covering distances of 5 km, 8 km, and 3 km. If we want to store these distances in an array, what would it look like? | ANSWER: [5, 8, 3]
QUESTION: Imagine you are tracking the daily mobile data usage (in MB) for your phone over 4 days: Day 1: 1500 MB, Day 2: 1200 MB, Day 3: 1800 MB, Day 4: 1500 MB. If you store this in an array, and then realise Day 2's usage was actually 1350 MB, how would the updated array look? | ANSWER: Initial array: [1500, 1200, 1800, 1500]. Updated array: [1500, 1350, 1800, 1500]
MCQ
Quick Quiz
Which of these best describes an array?
A single item that holds a value
A collection of different types of items mixed together
An organised list of similar items stored together
A way to draw pictures on a computer
The Correct Answer Is:
C
An array is specifically designed to store an organised list of similar items. Options A and B describe other concepts, and D is unrelated.
Real World Connection
In the Real World
When you open an app like Flipkart or Amazon, the list of products shown on your screen (like all mobile phones in a category) is often managed using arrays. Similarly, when ISRO tracks data from satellites, sensor readings over time are stored in arrays for analysis. Even your phone's contact list is like an array of contacts!
Key Vocabulary
Key Terms
COLLECTION: A group of things | ITEM: A single thing in a group | ORDERED: Arranged in a specific sequence | DATA: Information or facts
What's Next
What to Learn Next
Great job understanding arrays! Next, you can learn about 'Array Indexing' and 'Array Operations'. These concepts will show you how to find specific items in an array and how to change or add items, building on what you've learned today.


