• Call Us : 03082533000 (WhatsApp)
  • Email Us : TestPointpk.com@gmail.com
Sticky Note
What is the worst case time complexity of a quick sort algorithm?
فوری ترتیب والے الگورتھم کی بدترین صورتحال کا وقت کی پیچیدگی کیا ہے؟
  1. O(log N)
  2. O(N log N)
  3. O(N²)
  4. None of these
Explanation
  • Quick Sort is a divide-and-conquer sorting algorithm.
  • In the worst case, it occurs when the pivot divides the array very unevenly (e.g., always smallest or largest element).
  • This results in O(n²) comparisons for an array of size n.

Additional information:

  • Average case → O(n log n)
  • Best case → O(n log n)
  • Worst case → O(n²)

Last verified on 23-03-2026

Related MCQs

ایچ ڈی ایم آئی کیبل کا کیا کام ہے؟
  1. To connect audio and video devices
  2. To transmit internet signals
  3. To connect storage devices
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

بٹ کوائن کس ٹیکنالوجی کو استعمال کرتا ہے؟
  1. Hashgraph
  2. Blockchain
  3. DAG
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

فشنگ عام طور پر کس مقصد کے لیے کی جاتی ہے؟
  1. Install legitimate updates
  2. Improve computer performance
  3. Obtain sensitive information through deceptive messages or websites
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

مضبوط پاس ورڈ کا بنیادی مقصد کیا ہے؟
  1. Protect an account from unauthorized access
  2. Improve screen resolution
  3. Increase internet speed
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

براؤزر میں بک مارک کا بنیادی مقصد کیا ہے؟
  1. Remove viruses
  2. Delete browsing history
  3. Save a webpage for easier future access
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

All Rights Reserved © TestPointpk.com