PlacementPrep
Practice › Technical › CSE/IT › Algorithms
Technical · CSE / IT

Algorithms MCQs for placement tests

20 technical questions of moderate difficulty, as asked in campus placement and company tests. Each has a short explanation.

Q1CSE/IT · AlgorithmsModerate

What is the time complexity of binary search on a sorted array of n elements?

Q2CSE/IT · AlgorithmsModerate

What is the worst-case time complexity of quicksort?

Q3CSE/IT · AlgorithmsModerate

What is the time complexity of merge sort in all cases?

Q4CSE/IT · AlgorithmsModerate

Which sorting algorithm is stable and takes O(n log n) time in the worst case?

Q5CSE/IT · AlgorithmsModerate

What is the best-case time complexity of bubble sort with an early-exit check?

Q6CSE/IT · AlgorithmsModerate

Which algorithm finds the shortest paths from one source in a graph with non-negative edge weights?

Q7CSE/IT · AlgorithmsModerate

Which algorithm can handle negative edge weights when finding single-source shortest paths?

Q8CSE/IT · AlgorithmsModerate

Kruskal's and Prim's algorithms are used to find:

Q9CSE/IT · AlgorithmsModerate

Which design technique solves problems by storing the results of overlapping subproblems?

Q10CSE/IT · AlgorithmsModerate

Merge sort is an example of which design technique?

Q11CSE/IT · AlgorithmsModerate

What is the time complexity of the naive recursive Fibonacci function?

Q12CSE/IT · AlgorithmsModerate

How many comparisons does linear search need in the worst case for n elements?

Q13CSE/IT · AlgorithmsModerate

Topological sorting is possible only for:

Q14CSE/IT · AlgorithmsModerate

The 0/1 knapsack problem is typically solved optimally using:

Q15CSE/IT · AlgorithmsModerate

What is the space complexity of merge sort on an array?

Q16CSE/IT · AlgorithmsModerate

Which of these grows the fastest as n increases?

Q17CSE/IT · AlgorithmsModerate

Using binary search on a sorted array of 1024 elements, what is the maximum number of comparisons needed?

Q18CSE/IT · AlgorithmsModerate

Which sorting algorithm repeatedly selects the smallest remaining element and places it next?

Q19CSE/IT · AlgorithmsModerate

Insertion sort performs best when the input is:

Q20CSE/IT · AlgorithmsModerate

The N-Queens problem is commonly solved using:

Want guided preparation? Placement Papers Prep courses by Dr. Kiran Derle, with video lessons and full-length mocks.

See placement courses ↗