
Learn core concepts, essential formulas, and attempt practice questions designed on the latest TCS NQT testing patterns.
Which sorting algorithm is known for partition pivots?
Correct Answer: A) Quick Sort
Step-by-step Solution: Quick Sort partitions arrays around pivot elements, sorting subsegments recursively.
What is worst-case time complexity of Bubble Sort?
Correct Answer: A) O(N^2)
Step-by-step Solution: In the worst case (reverse sorted array), bubble sort runs nested loops comparing all pairs, taking O(N^2) time.
Merge Sort is stable, meaning it preserves the original order of equal key elements.