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

Basic 1D Array Questions

The document outlines basic level tasks related to array fundamentals. It includes operations such as reading elements, calculating sums and averages, finding the largest and smallest elements, counting elements, reversing the array, and performing searches. These tasks serve as foundational exercises for understanding array manipulation in programming.
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)
4 views1 page

Basic 1D Array Questions

The document outlines basic level tasks related to array fundamentals. It includes operations such as reading elements, calculating sums and averages, finding the largest and smallest elements, counting elements, reversing the array, and performing searches. These tasks serve as foundational exercises for understanding array manipulation in programming.
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

🟢 BASIC LEVEL (Array fundamentals)

1. Read N elements into an array and print them.


2. Find the sum of all elements of an array.
3. Find the average of array elements.
4. Find the largest element in the array.
5. Find the smallest element in the array.
6. Count the number of elements in the array.
7. Print array elements in reverse order.
8. Count how many elements are even and odd.
9. Count how many elements are positive, negative, and zero.
10. Search for a given element and print its index (linear search).

You might also like