CS1 Unit Review: Searching and Sorting Algorithms

CS1 Unit Review: Searching and Sorting Algorithms

University

37 Qs

quiz-placeholder

Similar activities

Intro to Data Structures and Algorithms Quiz

Intro to Data Structures and Algorithms Quiz

University

35 Qs

TLE/ICT 9 - Programming Q1 Mastery Test

TLE/ICT 9 - Programming Q1 Mastery Test

9th Grade - University

40 Qs

CpE 416 Module 3 - De Honor

CpE 416 Module 3 - De Honor

University

35 Qs

Technical Round 3

Technical Round 3

University

40 Qs

ITS 101

ITS 101

University

35 Qs

Quiz Pra UAS LA

Quiz Pra UAS LA

University

33 Qs

Iti Round 1

Iti Round 1

University

40 Qs

2.1 - Algorithms OCR

2.1 - Algorithms OCR

KG - University

34 Qs

CS1 Unit Review: Searching and Sorting Algorithms

CS1 Unit Review: Searching and Sorting Algorithms

Assessment

Quiz

Computers

University

Medium

Created by

Jack Bandy

Used 3+ times

FREE Resource

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

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?