Exam 18: Searching and Sorting

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

After the ith iteration of an ascending order selection sort,the smallest i items of the array will be sorted in increasing order in the first i elements of the array.

Free
(True/False)
4.9/5
(41)
Correct Answer:
Verified

True

Searching data involves determining whether a search key is present in the data and,if so,finding its location.

Free
(True/False)
4.9/5
(30)
Correct Answer:
Verified

True

The selection sort is a simple and efficient algorithm.

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

False

A linear search algorithm will always search each and every element.

(True/False)
4.7/5
(28)

If the search key is not in an array of 10 elements,how many comparisons must the linear search algorithm make

(Multiple Choice)
4.9/5
(27)

What is the efficiency of selection sort

(Multiple Choice)
4.8/5
(33)

Linear search is faster and more complex than the binary search.

(True/False)
4.9/5
(37)

O(1)means that the algorithm has a constant run time.

(True/False)
4.8/5
(31)

The merge sort algorithm sorts an array by splitting it into two equal-sized subarrays,sorting each subarray and merging them in one larger array.

(True/False)
4.8/5
(34)

At the ith iteration of the insertion sort algorithm,the array will be sorted.

(True/False)
4.8/5
(24)

Insertion sort is a simple and inefficient algorithm.

(True/False)
4.8/5
(40)

What is the term used for binary search's run time

(Multiple Choice)
4.8/5
(43)

What is the efficiency of merge sort

(Multiple Choice)
4.8/5
(31)

What does the first pass of selection sort do

(Multiple Choice)
4.8/5
(42)

Which of the following sorting algorithms is the fastest when sorting a large array

(Multiple Choice)
4.9/5
(32)

What is the efficiency of linear search

(Multiple Choice)
4.8/5
(21)

The Big O Notation measures the average case run time of an algorithm.

(True/False)
4.9/5
(34)

Which of the following is a negative aspect of binary search

(Multiple Choice)
4.8/5
(29)

How much faster is the insertion sort with a 15-element array than with a 60-element array

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

Filters

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