CIS 162 AD - C# Programming I - Section 5832
Midterm Exam
Due Thursday, March 9, 2006

Name:

Definitions: please explain the following terms:

  1. array

  2. array index

  3. array length

  4. sort

  5. parallel arrays

  6. multidimensional array

  7. jagged array

  8. Equals() method

II. Questions or short essay

  1. What is the syntax of the statement that declares an array?

  2. What are advantages of using an array to hold data in your program?

  3. What does it mean that C# performs bounds checking?

  4. What is the syntax of the foreach loop?

  5. What does the reverse() method of the Array class do?

  6. What are advantages of using an arrayList over an array?

  7. What does it mean that a string is immutable?

III. Programming Exercise