Quiz for algorithms

Quiz for algorithms

University

15 Qs

quiz-placeholder

Similar activities

REMIDI PTS IPA KELAS 8

REMIDI PTS IPA KELAS 8

10th Grade - University

20 Qs

Science and technology

Science and technology

University

10 Qs

Ciência dos Materiais

Ciência dos Materiais

University

15 Qs

Gathering agistany

Gathering agistany

University

20 Qs

C++ Array Quiz

C++ Array Quiz

University

10 Qs

Geologia Geral

Geologia Geral

University

10 Qs

Weather, Climate and Adaptions of Animals to Climate

Weather, Climate and Adaptions of Animals to Climate

7th Grade - Professional Development

15 Qs

Farmacologia_CS2_E53_6TO2020A_MTRA KEILA

Farmacologia_CS2_E53_6TO2020A_MTRA KEILA

1st Grade - University

14 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