• Call Us : 03082533000 (WhatsApp)
  • Email Us : TestPointpk.com@gmail.com
Sticky Note
Which data structure is best for implementing a priority queue?
ترجیحی قطار کو نافذ کرنے کے لئے کون سا ڈیٹا ڈھانچہ بہترین ہے؟
  1. Hash Table
  2. Heap
  3. Stack
  4. None of these
Explanation

A heap efficiently supports priority queue operations like insertion and extraction of the highest (or lowest) priority element.

Common types include min-heap and max-heap, which maintain the heap property for fast access to priority elements.

Related MCQs

میک آپریٹنگ سسٹم کو _____ نے تیار کیا ہے؟
  1. Samsung
  2. Microsoft
  3. Apple
  4. IBM
اس سوال کو وضاحت کے ساتھ پڑھیں

ایک مرتب کیا ہے؟
  1. A compiler is a special program that processes statements written in a particular programming language and turns them into machine language
  2. A compiler is a language providing very efficient execution
  3. A compiler does a conversion line by line as the program is run
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

درج ذیل میں سے کون سا اینڈرائیڈ کے آفیشل ورژن کا کوڈ نام نہیں ہے؟
  1. Muffin
  2. Cupcake
  3. Donut
  4. Lollipop
اس سوال کو وضاحت کے ساتھ پڑھیں

کسی ویب سائٹ کو صارف کی شناخت یاد رکھنے میں کون سی چیز مدد دیتی ہے؟
  1. Cookies
  2. Firewall
  3. Cache
  4. Compiler
اس سوال کو وضاحت کے ساتھ پڑھیں

جب صارف کمپیوٹر آن کرتا ہے تو آپریٹنگ سسٹم شروع کرنے کے عمل کو کیا کہا جاتا ہے؟
  1. Starting
  2. Loading
  3. Booting
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

All Rights Reserved © TestPointpk.com