LAB 23: VARIABLES AND ARRAYS

 <  Day Day Up  >  

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.

 <  Day Day Up  >  


UNIX Shells by Example
UNIX Shells by Example (4th Edition)
ISBN: 013147572X
EAN: 2147483647
Year: 2004
Pages: 454
Authors: Ellie Quigley

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net