Assessment2

Assessment2

University

9 Qs

quiz-placeholder

Similar activities

Data Structuer

Data Structuer

University

12 Qs

Quizze Buzzie

Quizze Buzzie

University

14 Qs

SORTING

SORTING

University

6 Qs

PDS - 04225 Chapter 11 - Part 1 - Sorting Algorithms

PDS - 04225 Chapter 11 - Part 1 - Sorting Algorithms

University - Professional Development

10 Qs

GCSE Computer Science 9-1: Sorting Algorithms

GCSE Computer Science 9-1: Sorting Algorithms

10th Grade - University

10 Qs

Sorting Methods

Sorting Methods

9th Grade - University

10 Qs

Time Complexity

Time Complexity

University

10 Qs

HEAP TREE

HEAP TREE

University

11 Qs

Assessment2

Assessment2

Assessment

Quiz

Computers

University

Easy

Created by

Praveena Akki

Used 1+ times

FREE Resource

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

8.

DRAW QUESTION

3 mins • 1 pt

What is the time complexity of a binary search algorithm?

Media Image

9.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following best describes space complexity?

The amount of time an algorithm takes to run

The amount of memory an algorithm requires to execute

The number of inputs an algorithm can handle

The number of times an algorithm loops