Chapter 7-9 Computer Science

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/13

encourage image

There's no tags or description

Looks like no tags are added yet.

14 Terms

1
New cards

The amount of memory used by an array depends on the array's data type and the number of elements in the array.

true

2
New cards

An array initialization must be all on one line.

False

3
New cards

When you pass an array as an argument to a function, the function can modify the contents of the array.

True

4
New cards

C++ limits the number of array dimensions to two

False

5
New cards

If you attempt to store data past an array's boundaries, it is guaranteed to cause a compiler error.

False

6
New cards

An individual array element can be processed like any other type of C++ variable

True

7
New cards

In C++11 you cannot use a range-based for loop to modify the contents of an array unless you declare the range variable as a reference variable.

True

8
New cards

In C++11 the range-based for loop is best used in situations where you need the element subscript for some purpose.

False

9
New cards

Although two-dimensional arrays are a novel idea, there is no known way to pass one to a function.

False

10
New cards

Each individual element of an array can be accessed by the array name and the element subscript.

True

11
New cards

If an array is partially initialized, the uninitialized elements will be set to zero.

True

12
New cards

The following statement is a valid C++ definition:

double money[25.00];

False

13
New cards

Assume array1 and array2 are the names of two arrays. To assign the contents of array2 to

array1, you would use the following statement:

array1 = array2;

False

14
New cards

A vector object automatically expands in size to accommodate the items stored in it.

True