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
(87)
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
(80)
Correct Answer:
Verified

False

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

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

E

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

(Multiple Choice)
4.8/5
(69)

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

(Multiple Choice)
4.9/5
(86)

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

(True/False)
5.0/5
(90)

A linear search can only be implemented with integer values.

(True/False)
4.9/5
(82)

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

(Multiple Choice)
5.0/5
(83)

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.9/5
(75)

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
(83)

The _________ is adequate for searching through small arrays.

(Multiple Choice)
4.7/5
(84)

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

(True/False)
4.8/5
(64)

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

(True/False)
4.9/5
(81)

The advantage of a linear search is its ____________.

(Multiple Choice)
4.9/5
(81)

Data that is sorted in ascending order is ordered

(Multiple Choice)
4.8/5
(85)

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

(Multiple Choice)
4.8/5
(81)

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

(True/False)
4.9/5
(74)

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

(Multiple Choice)
4.8/5
(78)

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

(Multiple Choice)
4.8/5
(60)

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

(Multiple Choice)
4.7/5
(84)
close modal

Filters

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