Search Header Logo

CS1 Unit Review: Searching and Sorting Algorithms

Authored by Jack Bandy

Computers

University

Used 3+ times

CS1 Unit Review: Searching and Sorting Algorithms
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

37 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

20 sec • 1 pt

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

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

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

Sorted

An even length

Unsorted

An odd length

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Suppose binary search is looking for a key in a sorted list of 7 items. If the key does not show up in its first "check," how many items has it eliminated from the search?

1

2

3

4

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

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

Binary search

Linear search

Any search algorithm

5.

OPEN ENDED QUESTION

3 mins • 1 pt

What is an example of an algorithm that you use in real life?

Evaluate responses using AI:

OFF

6.

DRAW QUESTION

20 sec • 1 pt

Draw a chart for an algorithm that has linear runtime, that is, O(n)

Media Image

7.

DRAW QUESTION

20 sec • 1 pt

Draw a chart for an algorithm that has logarithmic runtime, that is, O(log2n). Binary search is one such algorithm.

Media Image

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?