CS1 Unit Review: Searching and Sorting Algorithms

CS1 Unit Review: Searching and Sorting Algorithms

Assessment

Flashcard

Computers

University

Easy

Created by

Jack Bandy

Used 4+ times

FREE Resource

Student preview

quiz-placeholder

29 questions

Show all answers

1.

FLASHCARD QUESTION

Front

An ___ can be defined as a step-by-step sequence of instructions to solve a problem

Back

algorithm

2.

FLASHCARD QUESTION

Front

The ___-sort algorithm works by repeatedly swapping neighboring numbers in a list if they are out of order, until the whole list is in order.

Back

Bubble

3.

FLASHCARD QUESTION

Front

The ___-sort algorithm works by splitting a list in half and separately sorting the two halves.

Back

Merge

4.

FLASHCARD QUESTION

Front

The ___-sort algorithm works by repeatedly finding the smallest number in an unsorted list.

Back

Selection

5.

FLASHCARD QUESTION

Front

For the binary search algorithm to work, the input list needs to be:

Back

Sorted

6.

FLASHCARD QUESTION

Front

Binary search in a sorted list of 7 items: How many items are eliminated if the key is not found in the first check?

Back

4

7.

FLASHCARD QUESTION

Front

Given a sorted list and a prize (or "key") to find, which search algorithm would you expect to perform best?

Back

Binary search

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?