Exam 7: Arrays

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

Which statement correctly uses C++ 11 to initialize a vector of ints named n with the values 10 and 20?

(Multiple Choice)
4.8/5
(68)

An array can easily be stepped through by using a ________.

(Multiple Choice)
4.8/5
(90)

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

(Multiple Choice)
4.8/5
(72)

When writing functions that accept multi-dimensional arrays as arguments, ________ must be explicitly stated in the parameter list.

(Multiple Choice)
4.7/5
(81)

To pass an array as an argument to a function, pass the ________ of the array.

(Multiple Choice)
4.9/5
(78)

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

(True/False)
4.8/5
(70)

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

(True/False)
4.9/5
(72)

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

(True/False)
4.8/5
(70)

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

(Multiple Choice)
5.0/5
(77)

A two-dimensional array can have elements of ________ data type(s).

(Multiple Choice)
4.8/5
(87)

What will the following C++ 11 code display? What will the following C++ 11 code display?

(Multiple Choice)
4.8/5
(77)

A two-dimensional array of characters can contain ________.

(Multiple Choice)
4.8/5
(83)

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

(Multiple Choice)
4.8/5
(76)

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

(Multiple Choice)
4.8/5
(75)

The statement:The statement:  Shows an example of: Shows an example of:

(Multiple Choice)
4.8/5
(78)

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

(True/False)
4.8/5
(81)

What will the following code display? What will the following code display?

(Multiple Choice)
4.8/5
(78)

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

(True/False)
4.8/5
(75)
Showing 41 - 58 of 58
close modal

Filters

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