O'Reilly logo

C# Primer Plus by Klaus Michelsen

Stay ahead with the world's most comprehensive technology and business learning platform.

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

Start Free Trial

No credit card required

Review Questions

1:
  1. How many dimensions does the array warpedWorld have if accessing one of its elements requires a line of code like the following:

    warpedWorld[2,4,1,6,4]
    
  2. How many nested for loops would be required to access all elements in the warpedWorld array?

2:You are considering writing a chess-playing program. How many dimensions would the array representing the chessboard need to have?
3:
  1. Declare a rectangular three-dimensional array called observations with base type uint. Assign to it a reference to a new array object with the following numbers of elements in each dimension—5, 10, 20.

  2. Write a statement that assigns the value 100 to the observations element with indexes 3, 2, 10.

  3. What happens if you attempt to access the element with indexes ...

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

Start Free Trial

No credit card required