Algorithms (CS)

649 questions in the bank
Are you ready to take quiz?
Explore more
Logo
About the Quiz

Quiz will ask 20 randomly selected questions with allotted time of . You can take the quiz more than once. Once you submit the quiz, you can review how you have done, the correct the answers for each questions and the explanation for the correct the answer.

INR100.00
INR1000.00
Unlimited Attempts   (lifetime access)

Try your first attempt for free.

Quiz Topics

10 Modules

Sorting Algorithms

9 topics
1.

Bubble Sort

10 questions
2.

Bucket Sort

10 questions
3.

Counting Sort

10 questions
4.

Heap Sort

10 questions
5.

Insertion Sort

10 questions
6.

Merge Sort

10 questions
7.

Quick Sort

10 questions
8.

Radix Sort

10 questions
9.

Selection Sort

10 questions

Search Algorithms

7 topics

Data Structures

10 topics

Recursion and Backtracking

6 topics

Dynamic Programming

7 topics

Graph Algorithms

6 topics

Complexity Analysis

5 topics

Greedy Algorithms

5 topics

Bit Manipulation

5 topics

Mathematical Algorithms

5 topics
Sample questions

What is the average time complexity of Bubble Sort?

O(n log n)

O(n^2)

O(n)

O(1)

Which of the following statements about Bubble Sort is true?

It is a stable sorting algorithm.

It is an in-place sorting algorithm.

It can be optimized to stop early if the list is already sorted.

It is the most efficient sorting algorithm for large datasets.

What is the worst-case time complexity of Bubble Sort?

O(n log n)

O(n^2)

O(n)

O(n^3)

How many passes does Bubble Sort require in the worst case for an array of size n?

n

n-1

n/2

n^2

Which of the following scenarios would make Bubble Sort perform better than its average case?

The array is already sorted.

The array is sorted in reverse order.

The array has only one element.

The array has many duplicate elements.

INR100.00
INR1000.00
Unlimited Attempts   (lifetime access)

Try your first attempt for free

Signup to add this to cart.

Quiz Topics

10 Modules

Sorting Algorithms

9 topics
1.

Bubble Sort

10 questions
2.

Bucket Sort

10 questions
3.

Counting Sort

10 questions
4.

Heap Sort

10 questions
5.

Insertion Sort

10 questions
6.

Merge Sort

10 questions
7.

Quick Sort

10 questions
8.

Radix Sort

10 questions
9.

Selection Sort

10 questions

Search Algorithms

7 topics

Data Structures

10 topics

Recursion and Backtracking

6 topics

Dynamic Programming

7 topics

Graph Algorithms

6 topics

Complexity Analysis

5 topics

Greedy Algorithms

5 topics

Bit Manipulation

5 topics

Mathematical Algorithms

5 topics