• Call Us : 03082533000 (WhatsApp)
  • Email Us : TestPointpk.com@gmail.com
Sticky Note
In data structures, what does unshift do?
ڈیٹا سٹرکچرز میں، ان شفٹ کیا کرتا ہے؟
  1. Adds an element to the beginning
  2. Removes the last element
  3. Removes the first element
  4. Adds an element to the end
Explanation
  • In arrays or lists, unshift adds a new element to the start of the structure.
  • The existing elements are shifted one position to the right to make space.
  • The opposite operation is shift, which removes the first element.
  • Unshift is useful when you need to prioritize new elements at the front.
  • It is commonly used in queue implementations and array manipulations.

Related MCQs

ڈاس آپریٹنگ سسٹم کس پر مبنی ہے؟
  1. Graphical User Interface
  2. Command Line Interface (CLI)
  3. Touch User Interface
  4. Voice User Interface
اس سوال کو وضاحت کے ساتھ پڑھیں

  1. Fourth generation computer
  2. First generation computer
  3. Third generation computer
  4. Second generation computer
  5. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

پاس ورڈ توڑنے یا اندازے سے معلوم کرنے کے عمل کو عام طور پر کیا کہا جاتا ہے؟
  1. Hacking
  2. Phishing
  3. Cracking
  4. Formatting
اس سوال کو وضاحت کے ساتھ پڑھیں

معیاری اے ایس سی آئی آئی میں کتنے حروف ہوتے ہیں؟
  1. 28
  2. 1024
  3. 512
  4. 128
  5. 928
اس سوال کو وضاحت کے ساتھ پڑھیں

سادہ زبان کو مشینی زبان میں تبدیل کرنے کے عمل کو کیا کہتے ہیں؟
  1. Compiler
  2. Modem
  3. Interpreter
  4. Translator
اس سوال کو وضاحت کے ساتھ پڑھیں

All Rights Reserved © TestPointpk.com