CS1 Unit Review: Searching and Sorting Algorithms

CS1 Unit Review: Searching and Sorting Algorithms

Assessment

Flashcard

Computers

University

Practice Problem

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?