ARRAY TEST (Iteration Based)
Section A: Multiple Choice Questions
1. What is an array? (a) Collection of variables (b) Collection of values in one variable (c) Loop (d)
Function
2. Which loop is mostly used to iterate arrays? (a) if (b) for (c) switch (d) try
3. Index of first element? (a) 0 (b) 1 (c) -1 (d) 10
Section B: Short Answer Questions
1. What is iteration?
2. What is the use of for loop in arrays?
3. What is array length?
Section C: Coding Questions (Use for loop only)
1. Print all elements of an array using for loop.
2. Find sum of all elements using for loop.
3. Count total elements in array using loop.
4. Print only even numbers from array.
5. Print only odd numbers from array.
6. Find maximum number in array using loop.
7. Find minimum number in array using loop.
8. Reverse array using loop (no reverse method).
9. Count how many numbers are greater than 10.
10. Print array elements in uppercase (if string array).