Algorithms (CS)

649 questions in the bank
Are you ready to take quiz?
Explore more
Algorithms (CS)
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.

Quiz Topics

10 Modules

Mathematical Algorithms

5 topics
1.

Exponentiation by Squaring

10 questions
2.

Greatest Common Divisor (GCD)

10 questions
3.

Least Common Multiple (LCM)

10 questions
4.

Prime Numbers

10 questions
5.

Sieve of Eratosthenes

10 questions

Bit Manipulation

5 topics

Greedy Algorithms

5 topics

Complexity Analysis

5 topics

Graph Algorithms

6 topics

Dynamic Programming

7 topics

Recursion and Backtracking

6 topics

Data Structures

10 topics

Search Algorithms

7 topics

Sorting Algorithms

9 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.

Quiz Topics

10 Modules

Mathematical Algorithms

5 topics
1.

Exponentiation by Squaring

10 questions
2.

Greatest Common Divisor (GCD)

10 questions
3.

Least Common Multiple (LCM)

10 questions
4.

Prime Numbers

10 questions
5.

Sieve of Eratosthenes

10 questions

Bit Manipulation

5 topics

Greedy Algorithms

5 topics

Complexity Analysis

5 topics

Graph Algorithms

6 topics

Dynamic Programming

7 topics

Recursion and Backtracking

6 topics

Data Structures

10 topics

Search Algorithms

7 topics

Sorting Algorithms

9 topics