Question 1

Time: 00:00:00
Which of the following is not a searching algorithm?

Binary search

Binary search

Linear search

Linear search

Quick sort

Quick sort

Interpolation search

Interpolation search

Question 2

Time: 00:00:00
Which algorithm is used to search for an element in a sorted array?

Binary search

Binary search

Linear search

Linear search

Bubble sort

Bubble sort

Merge sort

Merge sort

Question 3

Time: 00:00:00
What is the time complexity of binary search algorithm in the worst case scenario?

O(1)

O(1)

O(n)

O(n)

O(log n)

O(log n)

O(n^2)

O(n^2)

Question 4

Time: 00:00:00
Which of the following is a divide and conquer algorithm for sorting?

Bubble sort

Bubble sort

Selection sort

Selection sort

Merge sort

Merge sort

Insertion sort

Insertion sort

Question 5

Time: 00:00:00
What is the time complexity of merge sort algorithm in the worst case scenario?

O(1)

O(1)

O(n)

O(n)

O(log n)

O(log n)

O(n log n)

O(n log n)

Question 6

Time: 00:00:00
Which algorithm is used to sort elements in an array by repeatedly finding the minimum element from the unsorted part and putting it at the beginning?

Bubble sort

Bubble sort

Insertion sort

Insertion sort

Selection sort

Selection sort

Quick sort

Quick sort

Question 7

Time: 00:00:00
What is the time complexity of selection sort algorithm in the worst case scenario?

O(1)

O(1)

O(n)

O(n)

O(log n)

O(log n)

O(n^2)

O(n^2)

Question 8

Time: 00:00:00
Which algorithm is used to sort elements by comparing adjacent elements and swapping them if they are in the wrong order?

Bubble sort

Bubble sort

Insertion sort

Insertion sort

Selection sort

Selection sort

Quick sort

Quick sort

Question 9

Time: 00:00:00
What is the time complexity of bubble sort algorithm in the worst case scenario?

O(1)

O(1)

O(n)

O(n)

O(log n)

O(log n)

O(n^2)

O(n^2)

Question 10

Time: 00:00:00
Which sorting algorithm has the best average-case time complexity?

Bubble sort

Bubble sort

Insertion sort

Insertion sort

Merge sort

Merge sort

Quick sort

Quick sort

null
null

Personalized Analytics only Availble for Logged in users

Analytics below shows your performance in various Mocks on PrepInsta

Your average Analytics for this Quiz

Rank

-

Percentile

0%

Get over 200+ Courses under One Subscription

mute

Don’t settle Learn from the Best with PrepInsta Prime Subscription

Learn from Top 1%

One Subscription, For Everything

The new cool way of learning and upskilling -

Limitless Learning

One Subscription access everything

Job Assistance

Get Access to PrepInsta Prime

Top Faculty

from FAANG/IITs/TOP MNC's

Get over 200+ course One Subscription

Courses like AI/ML, Cloud Computing, Ethical Hacking, C, C++, Java, Python, DSA (All Languages), Competitive Coding (All Languages), TCS, Infosys, Wipro, Amazon, DBMS, SQL and others.

Comments