Search Header Logo

Assessment2

Authored by Praveena Akki

Computers

University

Used 1+ times

Assessment2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the average case running time of an insertion sort algorithm?

O(N)

O(N log N)

O(log N)

O(N2)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the running time of an insertion sort algorithm if the input is pre-sorted?

O(N2)

O(N log N)

O(N)

O(M log N)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the number of passes to sort the elements using insertion sort?

6

5

7

1

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

For the following question, how will the array elements look like after second pass?

34, 8, 64, 51, 32, 21

8, 21, 32, 34, 51, 64

8, 32, 34, 51, 64, 21

8, 34, 51, 64, 32, 21

8, 34, 64, 51, 32, 21

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Binary search can be used in an insertion sort algorithm to reduce the number of comparisons.

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

For the best case input, the running time of an insertion sort algorithm is?

Linear

Binary

Quadratic

Depends on the input

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does time complexity measure in an algorithm?

Number of operations executed

Amount of memory used

Number of lines of code

Input size

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?