Quiz for algorithms

Quiz for algorithms

University

15 Qs

quiz-placeholder

Similar activities

Sorting Quiz

Sorting Quiz

University - Professional Development

15 Qs

Data Struct: Quiz 3

Data Struct: Quiz 3

University

10 Qs

Software Engineering Quiz 1

Software Engineering Quiz 1

University

10 Qs

Got It Game Quiz

Got It Game Quiz

University

10 Qs

Ionic and Covalent

Ionic and Covalent

8th Grade - University

15 Qs

Different Type of Clouds

Different Type of Clouds

4th Grade - University

10 Qs

Revisão POTA

Revisão POTA

University

17 Qs

Python Review Module 16 - Searching Sorting Algorithm

Python Review Module 16 - Searching Sorting Algorithm

University

17 Qs

Quiz for algorithms

Quiz for algorithms

Assessment

Quiz

Science

University

Medium

Created by

Ardak Artykbayeva

Used 10+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What will be the output of the following binary search function?

3

7

2

-1

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Binary search is only applicable when:


  1. The list is sorted 

The list contains only integers

  1. The list has an odd number of elements

  1. The elements are unique

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the average-case time complexity of binary search?

  1. O(n)

  1. O(n log n)

O(1)

O(log n)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which sorting algorithm is the most efficient for sorting large datasets? 

Bubble Sort

  1. Selection Sort

  1. Quick Sort 

  1. Insertion Sort

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which sorting algorithm works by selecting the smallest element and swapping it with the first unsorted element?  


  1. Bubble Sort

Quick Sort

Merge Sort

  1. Selection Sort 

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary advantage of Merge Sort over Quick Sort?


  1. Merge Sort is always faster

  1. Merge Sort does not use recursion

  1. Merge Sort is stable 

  1. Merge Sort is in-place

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the order of elements removed in a queue?


  1. LIFO

  1. FIFO 

  1. Random

  1. Sorted Order

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?