Exam 8: Searching and Sorting Arrays

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

A(n) ________ search is more efficient than a(n) ________ search

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

C

The bubble sort is an easy way to arrange data into ascending order, but it cannot arrange data into descending order.

Free
(True/False)
4.8/5
(35)
Correct Answer:
Verified

False

Regardless of the algorithm being used, a search through an array is always performed

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

E

The _________ sort usually performs fewer exchanges than the ________ sort.

(Multiple Choice)
4.7/5
(32)

A ________ algorithm is a method of locating a specific item of information in a larger collection of data.

(Multiple Choice)
4.8/5
(43)

Before you can perform a bubble sort, the data must be stored in descending order.

(True/False)
5.0/5
(42)

A linear search can only be implemented with integer values.

(True/False)
4.9/5
(37)

Array elements must be _________ before a binary search can be performed.

(Multiple Choice)
5.0/5
(38)

Using a linear search to find a value that is stored in the last element of an array of 20,000 elements, ____________ element(s) must be compared.

(Multiple Choice)
4.8/5
(36)

In the average case, an item is just as likely to be found near the beginning of an array as near the end.

(True/False)
4.8/5
(36)

The _________ is adequate for searching through small arrays.

(Multiple Choice)
4.8/5
(36)

Before you can perform a selection sort, the data must be stored in ascending order.

(True/False)
4.8/5
(35)

Using a binary search, you are more likely to find an item than if you use a linear search.

(True/False)
4.9/5
(39)

The advantage of a linear search is its ____________.

(Multiple Choice)
4.9/5
(45)

Data that is sorted in ascending order is ordered

(Multiple Choice)
4.8/5
(36)

When an array is sorted from highest to lowest, it is said to be in _____ order.

(Multiple Choice)
4.8/5
(38)

The number of comparisons made by a binary search is expressed in powers of two.

(True/False)
4.9/5
(35)

A(n) ________ search uses a loop to sequentially step through an array.

(Multiple Choice)
4.8/5
(36)

A binary search begins with the _________ element of an array.

(Multiple Choice)
4.8/5
(26)

___________ algorithms are used to arrange random data into some order.

(Multiple Choice)
4.8/5
(39)
close modal

Filters

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