Exam 7: Arrays and Vectors

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

Arrays must be __________ at the time they are __________.

(Multiple Choice)
4.9/5
(28)

An array's size declarator must be a __________ with a value greater than __________.

(Multiple Choice)
4.8/5
(26)

What will the following code display? Int numbers[4] = {99, 87}; Cout << numbers[3] << endl;

(Multiple Choice)
4.9/5
(42)

A two-dimensional array of characters can contain

(Multiple Choice)
4.8/5
(35)

An array can easily be stepped through by using a

(Multiple Choice)
4.7/5
(28)

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

(Multiple Choice)
4.9/5
(32)

An array with no elements is

(Multiple Choice)
4.9/5
(29)

By using the same ___________ you can build relationships between data stored in two or more arrays.

(Multiple Choice)
4.8/5
(32)

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

(True/False)
4.8/5
(35)

Which statement correctly defines a vector object for holding integers?

(Multiple Choice)
4.9/5
(35)

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

(True/False)
4.8/5
(34)

Unlike regular variables, __________ can hold multiple values.

(Multiple Choice)
4.9/5
(39)

Which of the following is a valid C++ array definition?

(Multiple Choice)
4.9/5
(34)

This following statement shows an example of ___________. int grades][ ] = {100, 90, 99, 80};

(Multiple Choice)
5.0/5
(46)

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

(True/False)
4.7/5
(28)

What will the following code display? Int numbers[] = {99, 87, 66, 55, 101}; For (int i = 1; i < 4; i++) Cout << numbers[i] << " ";

(Multiple Choice)
4.9/5
(33)

A two-dimensional array can be viewed as

(Multiple Choice)
4.9/5
(34)

The range-based for loop in C++11 is designed to work with a built-in variable known as

(Multiple Choice)
4.7/5
(34)

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

(Multiple Choice)
4.9/5
(26)

What does the following statement do? Vector<int> v(10);

(Multiple Choice)
4.9/5
(33)
Showing 21 - 40 of 56
close modal

Filters

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