• 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. Hyper Text Transfer Protocol Secure
  2. Hyper Text Translation Protocol Service
  3. Hyper Text Translation Protocol Secure
  4. Hyper Text Transfer Protocol Service
اس سوال کو وضاحت کے ساتھ پڑھیں

کیپچا کا بنیادی مقصد کیا ہے؟
  1. To speed up website loading times
  2. To verify that the user is human
  3. To improve image quality
  4. To block internet access
اس سوال کو وضاحت کے ساتھ پڑھیں

درج ذیل میں سے کون سا پرنٹر نہیں ہے؟
  1. Pixel printer
  2. Laser
  3. Dot matrix
  4. Inkjet printer
اس سوال کو وضاحت کے ساتھ پڑھیں

کمپیوٹر پراسیس ینالاگ اور ڈیجیٹل سگنل دونوں ______ ہے؟
  1. Hybrid
  2. Analogue
  3. Digital
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

کمپیوٹر کو دی گئی ہدایات کس زبان میں دی جاتی ہیں؟
  1. Assembly Language
  2. High-Level Language
  3. Machine Language
  4. Scripting Language
اس سوال کو وضاحت کے ساتھ پڑھیں

All Rights Reserved © TestPointpk.com