Filters
Question type

Study Flashcards

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


A) binary
B) unary
C) linear
D) relative
E) None of these

F) A) and E)
G) C) and D)

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

True

Data that is sorted in ascending order is ordered ________.


A) from lowest to highest value
B) from highest to lowest value
C) always with a binary sort algorithm
D) always with a linear sort algorithm
E) None of these

F) B) and E)
G) All of the above

Correct Answer

verifed

verified

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


A) bubble, selection
B) binary, linear
C) selection, bubble
D) ANSI, ASCII
E) None of these

F) C) and D)
G) D) and E)

Correct Answer

verifed

verified

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


A) Standard search
B) Linear
C) Sorting
D) Binary search
E) None of these

F) A) and E)
G) A) and C)

Correct Answer

verifed

verified

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


A) sort
B) search
C) standard
D) linear
E) None of these

F) C) and E)
G) A) and E)

Correct Answer

verifed

verified

B

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


A) summed
B) set to zero
C) sorted
D) positive numbers
E) None of these

F) B) and C)
G) B) and D)

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

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


A) reverse
B) forward
C) descending
D) ascending
E) None of these

F) A) and B)
G) B) and E)

Correct Answer

verifed

verified

The advantage of a linear search is its ________.


A) complexity
B) efficiency
C) simplicity
D) speed
E) None of these

F) A) and B)
G) A) and E)

Correct Answer

verifed

verified

The ________ is adequate for searching through small arrays.


A) binary search
B) linear search
C) unary search
D) bubble sort
E) None of these

F) A) and E)
G) C) and D)

Correct Answer

verifed

verified

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


A) from lowest to highest element
B) from highest to lowest element
C) beginning with the middle element
D) using a binary search
E) None of these

F) B) and E)
G) A) and C)

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

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.


A) 20,000
B) only the first
C) only half
D) 2000
E) None of these

F) A) and B)
G) B) and D)

Correct Answer

verifed

verified

A linear search can only be implemented with integer values.

A) True
B) False

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

True

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

A) True
B) False

Correct Answer

verifed

verified

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


A) first
B) last
C) largest
D) middle
E) None of these

F) C) and E)
G) All of the above

Correct Answer

verifed

verified

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


A) character, string
B) integer, double
C) binary, linear
D) linear, binary
E) None of these

F) B) and D)
G) D) and E)

Correct Answer

verifed

verified

Showing 1 - 20 of 20

Related Exams

Show Answer