0% found this document useful (0 votes)
2 views1 page

Array Test Iteration

The document is a test on arrays, structured into three sections: multiple choice questions, short answer questions, and coding questions. It covers fundamental concepts of arrays, iteration, and the use of for loops, along with practical coding tasks related to array manipulation. The coding section requires the application of for loops to perform various operations on arrays.

Uploaded by

virajkamboj34444
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Array Test Iteration

The document is a test on arrays, structured into three sections: multiple choice questions, short answer questions, and coding questions. It covers fundamental concepts of arrays, iteration, and the use of for loops, along with practical coding tasks related to array manipulation. The coding section requires the application of for loops to perform various operations on arrays.

Uploaded by

virajkamboj34444
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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).

You might also like