Exam 7: Arrays

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

An array can store a group of values, but the values must be

(Multiple Choice)
4.9/5
(84)

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

(True/False)
4.9/5
(67)

Unlike regular variables, these can hold multiple values.

(Multiple Choice)
4.9/5
(95)

An array initialization list must be placed on one single line.

(True/False)
4.8/5
(82)

What will the following code display? int numbers[] = {99, 87, 66, 55, 101 }; Cout << numbers[3] << endl;

(Multiple Choice)
4.8/5
(72)

The name of an array stores the __________ of the first array element.

(Multiple Choice)
4.8/5
(80)

Subscript numbering in C++

(Multiple Choice)
4.8/5
(78)

A two-dimensional array of characters can contain

(Multiple Choice)
4.8/5
(81)

If you attempt to store data past an array's boundaries, it is guaranteed that the compiler will issue an error.

(True/False)
4.8/5
(67)

A(n) ____________ can be used to specify the starting values of an array.

(Multiple Choice)
4.8/5
(72)

How many elements does the following array have? int bugs[1000];

(Multiple Choice)
4.9/5
(80)

This vector function removes an item from a vector.

(Multiple Choice)
4.9/5
(75)

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

(True/False)
4.9/5
(69)

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

(True/False)
4.9/5
(84)

The statement int grades[ ] = { 100, 90, 99, 80}; Shows an example of

(Multiple Choice)
4.8/5
(76)

If you leave out the size declarator in an array definition:

(Multiple Choice)
4.8/5
(79)

Given the following declaration, where is 77 stored in the scores array? int scores[]={83, 62, 77, 97};

(Multiple Choice)
4.8/5
(92)

To assign the contents of one array to another, you must use

(Multiple Choice)
4.9/5
(83)

The statement double money[25.00]; is a valid C++ array definition.

(True/False)
4.9/5
(77)

An array of string objects that will hold 5 names would be declared using which statement?

(Multiple Choice)
4.9/5
(85)
Showing 21 - 40 of 53
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)