CLASS - 7
Chapter – 4 UNDERSTANDING
ARRAYS & COLLECTIONS
Q1. What are collections? What can you do with collections?
Ans: A collection is nothing but a container that groups multiple items into a single
object. Collections are used to store data. We can also retrieve and manipulate
data that is stored in the collections.
Q2. Give some real life examples of collections (any three).
Ans: In real life, you can consider a collection of cards, a telephone directory or a mail
box to be the example of collections.
Q3. Write down the advantages of using collections.
Ans: (a) Collection allows programmers to group multiple items into a common set.
(b) Group group of items makes it easier to identify and perform different
operations on them like retrieving and modifying data.
(c) It increases the performance of the program.
(d) It increases productivity and reduces operational time.
Q4. What do you mean by term array in terms of programming?
Ans: (a) An array is a collection of similar data type variables.
(b) Arrays do not support different data types in the same collection.
(c) Arrays improve the readability of the code by using a single variable for a
large set of data.
Q5. Give two examples of arrays in real life.
(a) Contact list- to store contacts on our phone
(b) Arrangement of leaderboard.
( c) Calender

Cl-7 Arrays and Collections in programming.pdf

  • 1.
    CLASS - 7 Chapter– 4 UNDERSTANDING ARRAYS & COLLECTIONS
  • 2.
    Q1. What arecollections? What can you do with collections? Ans: A collection is nothing but a container that groups multiple items into a single object. Collections are used to store data. We can also retrieve and manipulate data that is stored in the collections. Q2. Give some real life examples of collections (any three). Ans: In real life, you can consider a collection of cards, a telephone directory or a mail box to be the example of collections. Q3. Write down the advantages of using collections. Ans: (a) Collection allows programmers to group multiple items into a common set. (b) Group group of items makes it easier to identify and perform different operations on them like retrieving and modifying data. (c) It increases the performance of the program. (d) It increases productivity and reduces operational time.
  • 3.
    Q4. What doyou mean by term array in terms of programming? Ans: (a) An array is a collection of similar data type variables. (b) Arrays do not support different data types in the same collection. (c) Arrays improve the readability of the code by using a single variable for a large set of data. Q5. Give two examples of arrays in real life. (a) Contact list- to store contacts on our phone (b) Arrangement of leaderboard. ( c) Calender