
Arrays Test Review
- One Dimensional arrays:
- Create arrays and initialize them with a loop.
- Initialize an array when created.
- Find the number of elements in an array.
- Check an array’s bounds.
- Swapping elements of an array – permutations (sampling without replacement)
- Given an array of N elements, write the code to shuffle them using the random feature.
- Find the max – min of the elements.
- Reverse the elements.
- Find the average of the elements.
- Print each element.
- Sieve of Erasthostenes http://en.wikipedia.org/wiki/Sieve_of_Eratosthenes
- Arrays as frequency or counters.
- What types must be used as indices for arrays?