Previous Section  < Day Day Up >  Next Section

LAB 23: VARIABLES AND ARRAYS

  1. What is the difference between a local variable and an environment variable?

  2. How do you list all local variables? Environmental variables?

  3. In what initialization file would you store local variables? Why?

  4. Create an array called fruit. Put five kinds of fruit in the array.

    1. Print the array.

    2. Print the last element of the array.

    3. Print the number of elements in the array.

    4. Remove the first element from the array.

    5. If you store an item that isn't fruit in the array, is it okay?

  5. Describe the difference between a wordlist and a string.

    Previous Section  < Day Day Up >  Next Section