• Call Us : 03082533000 (WhatsApp)
  • Email Us : TestPointpk.com@gmail.com
Sticky Note
What is the space complexity of the HeapSort algorithm?
  1. O(1)
  2. O(2)
  3. O(3)
  4. None of these
Explanation
  • Heap Sort is an in-place sorting algorithm, meaning it does not require extra arrays.
  • All operations are performed within the original array.
  • Therefore, its space complexity is constant, O(1).

Last verified on 24-03-2026

Related MCQs

اسپیم یا جنک ای میل کیا ہوتی ہے؟
  1. Official government email
  2. Important personal email
  3. Unwanted or unsolicited email
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

کسی مسئلے کو حل کرنے کے لیے دی گئی ہدایات یا مراحل کے مجموعے کو کیا کہتے ہیں؟
  1. Procedure
  2. Method
  3. Algorithm
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

ڈیٹا کی ایک جگہ سے دوسری جگہ منتقلی کو کیا کہتے ہیں؟
  1. Data processing
  2. Data distribution
  3. Data communication
  4. Data encryption
اس سوال کو وضاحت کے ساتھ پڑھیں

آپریٹنگ سسٹم کیا ہوتا ہے؟
  1. Personal software
  2. System software
  3. Application software
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

  1. To select all text
  2. To copy
  3. To paste
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

All Rights Reserved © TestPointpk.com