Exam 6: Arrays and Vectors

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

An array is not:

Free
(Multiple Choice)
4.8/5
(37)
Correct Answer:
Verified

D

Which statement about insertion sort is true?

Free
(Multiple Choice)
4.8/5
(37)
Correct Answer:
Verified

B

Referencing elements outside the array bounds:

Free
(Multiple Choice)
4.9/5
(37)
Correct Answer:
Verified

A

Which of the following is not true of class template vector?

(Multiple Choice)
4.9/5
(38)

Using square brackets []) to retrieve vector elements __________ perform bounds checking; using member function at to retrieve vector elements __________ perform bounds checking.

(Multiple Choice)
4.8/5
(38)

Constant variables:

(Multiple Choice)
4.8/5
(30)

Given the following declaration, what is the value of b[ 1 ][ 0 ]? Int b[ 2 ][ 2 ] = { { 1 }, { 3 , 4 } };

(Multiple Choice)
4.9/5
(39)

Which of the following is false?

(Multiple Choice)
4.8/5
(42)

Unless otherwise specified, entire arrays are passed __________ and individual array elements are passed __________.

(Multiple Choice)
4.8/5
(42)

Which of the following statements is false about a function to which an array is being passed?

(Multiple Choice)
4.8/5
(35)

After the ith iteration of the insertion sort:

(Multiple Choice)
4.9/5
(35)

Which of the following is not a correct way to initialize an array?

(Multiple Choice)
4.7/5
(28)

A double subscripted array declared as int a[ 3 ][ 5 ]; has how many elements?

(Multiple Choice)
4.8/5
(41)

Linear search is highly inefficient compared to binary search when dealing with:

(Multiple Choice)
4.9/5
(33)

In a typical nested for-loop used to process a two-dimensional array, following the end of the each execution of the inner for loop:

(Multiple Choice)
4.8/5
(33)

Which of the following does not declare a 2-by-2 array and set all four of its elements to 0?

(Multiple Choice)
4.9/5
(28)

To prevent modification of array values passed to a function:

(Multiple Choice)
4.7/5
(38)

Linear search can be used on:

(Multiple Choice)
4.8/5
(34)

Which statement would be used to declare a 10-element integer array c?

(Multiple Choice)
4.9/5
(35)
close modal

Filters

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