Page 72 - Touchcode_C7_Flipbook
P. 72
C. Fill in the blanks.
HELP BOX integer, null, group, variable, sequentially
1. Collections ........................... multiple elements into a common set.
2. Lists which are not fixed-size are referred to as ........................... size.
3. You cannot iterate or modify a collection which is ........................... .
4. The variables in an array are always ordered ........................... .
5. Array declared with data type integer can only hold ........................... values.
D. Match the following:
1. Collection a. Size remains constant but the elements can change
2. Array b. arr=[10, 20, 30, 40, 50, 60];
3. Immutable c. Similar data type variables
4. Fixed size d. Telephone directory
5. Declaration of array e. No change in the Collection object will be visible
E. Answer the following questions:
1. Give two examples of the collection.
.............................................................................................................................................................
.............................................................................................................................................................
2. Write one difference between arrays and collection.
.............................................................................................................................................................
.............................................................................................................................................................
3. How can you add an element to the collections?
.............................................................................................................................................................
.............................................................................................................................................................
4. What do you mean by “array index”?
.............................................................................................................................................................
.............................................................................................................................................................
5. Write any two advantages of collection.
.............................................................................................................................................................
.............................................................................................................................................................
70 Touchcode-VII

