• Call Us : 03082533000 (WhatsApp)
  • Email Us : TestPointpk.com@gmail.com
Sticky Note
In data structures, what does shift do?
ڈیٹا سٹرکچرز میں، شفٹ کیا کرتا ہے؟
  1. Removes the first element
  2. Adds an element to the end
  3. Removes the last element
  4. Adds an element to the beginning
Explanation
    • In arrays or lists, shift removes the first element.
    • The remaining elements are shifted one position to the left to fill the gap.
    • The opposite operation is unshift, which adds an element to the beginning.
    • Shift is useful in queue implementations where the first element is processed first.
    • It helps in efficiently managing data in ordered sequences.

Related MCQs

پورے کمپیوٹر سسٹم کو مربوط کیا جاتا ہے؟
  1. ALU
  2. Register
  3. Control Unit
  4. Both A and C
اس سوال کو وضاحت کے ساتھ پڑھیں

ریم کونسی میموری ہے؟
  1. Permanent
  2. Volatile
  3. Primary Memory
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

ایم آئی سی آر کا مطلب کیا ہے؟
  1. Magnetic Ink Code Reader
  2. Magnetic Ink Cases Reader
  3. Magnetic ink character recognition
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

انٹرنیٹ کنکشن کے لیے کون سا آلہ ضروری ہے؟
  1. Joystick
  2. Modem
  3. CD drive
  4. NIC card
اس سوال کو وضاحت کے ساتھ پڑھیں

جنک ای میل کا دوسرا نام کیا ہے؟
  1. Spoof
  2. Spill
  3. Spam
  4. Spat
اس سوال کو وضاحت کے ساتھ پڑھیں

All Rights Reserved © TestPointpk.com