Lecture 14:  Arrays

Activity:



Fill out the following matrix.  This matrix lists some conjectures and it's your job to decide if these hold under two conditions.  The first condition is that of an integer variable and the second is that of an array of integers.  Please complete the table with true and false labels.
 
 
Conjecture Integer variable (named rainfall) An array of integers (named rainfall)
Holds data    
Holds multiple values simultaneously    
Can use = to assign to another variable    
When used as a parameter, it is passed using the call by value convention    
rainfall[0] is syntactically valid    
Can compare to another variable using ==    
rainfall = {1,2,3,4,5} is legal