## With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

No credit card required

### Review Questions

 1: Declare an array variable called distances with elements of type double.Assign an array object with 5 elements to distances.Assign an array object to distances with the values 20.1, 30.7, 45.8, 19.1, 12.4, and 34.5. 2: Consider the following array: ```private int[] numbers = { 10,5,3,15} ; ``` What is the value of the following array element? numbers[1]What is the output from the following loop construct:```for(int i = 3; i >= 0; i--) { Console.Write(" { 0} ", numbers[i]) } ```Write a loop using the foreach construct to traverse and print onscreen each element in numbers. This should result in the following output: 10 5 3 15.What is wrong with the following code that attempts to traverse the numbers array? What will happen when it is ...

## With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

No credit card required