Search Header Logo

search algorithms, decomposition, sorting algorithms

Authored by Jon Andrews

Computers

12th Grade

search algorithms, decomposition, sorting algorithms
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

50 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Media Image

Which of these are fundamental control structures in any computer program?

branching

sequence

selection

repetition

iteration

2.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

For which of the problems would the bubble sort algorithm provide an appropriate solution. Choose all that apply.

Arranging a deck of cards from the lowest to the highest value cards.

Looking up a name in the phone book.

Sorting a stack of paper money into denominations -- i.e., £5, £10, £20 etc.

Sorting a basket of laundry into socks, shirts, shorts, and sheets.

Arranging books on a bookshelf by author's last name.

3.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

For what purpose would a merge sort algorithm be used?

To list items alphabetically.

To reorder a single list.

To combine identical lists together.

To reorder multiple lists into a singular ordered list.

4.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of the following blocks of code is an example of a selection?


Answers: 2

Media Image
Media Image
Media Image
Media Image
Media Image

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

1. What's on line 5?

2D array

1D array

Variable

Function

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the time complexity of this algorithm?

O(n)

O(2n)

O(log n)

O(n2)

O(1)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

....................... takes each item in turn, compare it to items in the sorted sublist and places it in the correct position.

Bubble sort

Insertion sort

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?