CS21A array exercises ideas

| -Uncategorized

(education)

I’ll need to give another quiz on arrays – make sure they know how to
declare, create and use arrays. They also need to pay attention to the
length part.

They also need to practice using loops to go over an array.

– Reverse an array
– Check if something is a palindrome.
– Add a number to the end of an array.
– Insert a number into the middle of an array.
– Print out every other item in an array.

You can comment with Disqus or you can e-mail me at sacha@sachachua.com.