COP 3014- Chapter 7 T/F

¡Supera tus tareas y exámenes ahora con Quizwiz!

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

C++ limits the number of array dimensions to two.

False

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

False

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

False

The following statement is a valid C++ definition: double money[25.00];

False

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

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

True

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

True

An array initialization must be all on one line.

False

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

False

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

True

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

True

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

True

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

True


Conjuntos de estudio relacionados

CoursePoint Chapter 1: The Nurse's Role in Health Assessment

View Set

Chapter 06: Values, Ethics, and Advocacy

View Set

Chapter 4: The Nursing Process in Drug Therapy and Patient Safety

View Set

321 Practice Questions - Documenting, Reporting, Conferring, and Using Informatics

View Set

APHG Unit 2-2 Migration pp76-109 Rubenstein

View Set

PrepU MedSurg: Acid-Base Balance

View Set