KRHS Internet Lesson

Teacher Name:Mr. Rung                          Date of Lesson: April

Course Name: C++                    Lesson Name: Chap 15.1ab

Student Name

Password


Objective
To complete the workbook exercises in chapter 15.


Primary Focus
Answer the questions in the first section of your workbook and fill in the answers below.

Site Links
Course Home Page

Additional Resources

Site Links


Question #1

The two-dimensional array is the most common type of multi-dimensional array.

True         False


Question #2

Part of what makes a good programmer is the ability to choose an efficient method of storing and processing data.

True         False


Question #3

The compiler will allow you to only declare one- and two-dimensional arrays.

True         False


Question #4

The sizeof operator calculates the size of arrays and other data structures.

True         False


Question #5

To initialize a multi-dimensional array when you declare it, you must make use of additional braces to group the values into rows.

True         False


Question #6

In one statement, declare and initialize a two-dimensional array that stores the data below. 5.43 3.453 432.456 7.342
4.98 6.897 34.123 23.423


Question #7

If you were using the vector class, how would you set up parallel arrays?


Question #8

Write a statement that uses the sizeof operator to display the size of the array Name-Array


Question #9

Why is the sizeof operator important?


Question #10

What information does the sizeof operator actually return?