Exam 16: Searching and Sorting

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

The size of a list is fixed and cannot be increased or decreased.

(True/False)
4.8/5
(81)

The statement ____ returns the element at the position index in vector vecList.

(Multiple Choice)
4.7/5
(82)

Which statement declares intList to be a vector of size 5 and the element to be of type int?

(Multiple Choice)
4.8/5
(81)

With the binary search algorithm, ____ key comparison(s) is/are made in the successful case-the last time through the loop.

(Multiple Choice)
4.9/5
(74)

Assume that n = 1000. To sort the list, bubble sort makes about ____ item assignments.

(Multiple Choice)
4.8/5
(77)

A variable declared using the vector type is called a ____.

(Multiple Choice)
4.8/5
(70)
Showing 41 - 46 of 46
close modal

Filters

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