Unlock access to all the studying documents.
View Full Document
Doyle: C#, 5th Ed. Page 1-1
C# Programming: From Problem Analysis to Program Design
Chapter 7
1. a. all have the same type.
2. d. integer
8. c. b
9. e. none of the above
10. b. x[4] += 42;
Doyle: C#, 5th Ed. Page 1-2
17. c. a copy of the value in the element.
21. a. 5
b. 67
22. foreach(int ar in bArray)
{
Console.WriteLine(ar);
}
Doyle: C#, 5th Ed. Page 1-3
25. Array.Sort(bArray);
27. Create array declarations for the following problem specifications.
a. string [ ] fontName = new string [ ] {“Arial“, “Times New Roman”,
“Courier”, “Century”, “Helvetica“};
Doyle: C#, 5th Ed. Page 1-4
28. Arrays are passed by reference. The array identifier memory location does not
actually contain the values, but rather an address indicating the location of the
elements in the array. When you pass an array to a method, by default, you pass a