Quiz for algorithms

Quiz for algorithms

University

15 Qs

quiz-placeholder

Similar activities

EXÁMEN SCEM UMSS

EXÁMEN SCEM UMSS

University

16 Qs

Acids and bases are all around

Acids and bases are all around

University

14 Qs

صيغ المعادلات الكيميائية

صيغ المعادلات الكيميائية

1st Grade - University

10 Qs

Understanding Wildfires

Understanding Wildfires

University

10 Qs

EXAMEN FUNDAMENTOS DE FARMACOLOGIA U1

EXAMEN FUNDAMENTOS DE FARMACOLOGIA U1

University

20 Qs

quiz 2

quiz 2

University

10 Qs

Ch1: Measurement, Estimating

Ch1: Measurement, Estimating

University

16 Qs

MYCOBACTERIUM 2

MYCOBACTERIUM 2

University

10 Qs

Quiz for algorithms

Quiz for algorithms

Assessment

Quiz

Science

University

Practice Problem

Medium

Created by

Ardak Artykbayeva

Used 10+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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?

Discover more resources for Science