Test Your Knowledge: Quiz

Question 10-1. What is the index of the seventh member of an array?

Question 10-2. Can an array hold objects of varying types?

Question 10-3. How do you specify the number of elements in an array?

Question 10-4. Are arrays reference types or value types? Where are the elements of the array created?

Question 10-5. How do you specify the highest index in any array?

Question 10-6. What are the two ways to initialize an array of three values?

Question 10-7. What are two ways to iterate through the items in an array?

Question 10-8. What does the params keyword do?

Question 10-9. What are the two types of multidimensional arrays and what is the difference between them?

Question 10-10. If you have a random array of float values, and you need them to be in order, with the largest value first, what methods should you use?

Get Learning C# 3.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.