• Call Us : 03082533000 (WhatsApp)
  • Email Us : TestPointpk.com@gmail.com
Sticky Note
In data structures, what does push 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 stack data structures, push is used to add an element.
  • The element is added to the top of the stack (end of the structure).
  • The opposite operation is pop, which removes the top element.
  • Stacks follow the LIFO (Last In, First Out) principle.
  • Push helps in storing data temporarily during computations and function calls.
  • Related MCQs

    آئی پی ایڈریس میں چار نمبروں کو کیا کہا جاتا ہے؟
    1. Octal
    2. Octets
    3. Bytes
    4. None of these
    اس سوال کو وضاحت کے ساتھ پڑھیں

    آئی پی ایڈریس ورژن 4 کی لمبائی کتنی ہوتی ہے؟
    1. 64 bits
    2. 48 bits
    3. 32 bits
    4. None of these
    اس سوال کو وضاحت کے ساتھ پڑھیں

    بجلی کی بندش کے دوران بیک اَپ بجلی فراہم کرنے اور غیر محفوظ شدہ ڈیٹا کے ضائع ہونے سے بچانے کے لیے کمپیوٹر کے ساتھ کون سا آلہ منسلک کیا جاتا ہے؟
    1. CPU
    2. UPS
    3. USB
    4. None of these
    اس سوال کو وضاحت کے ساتھ پڑھیں

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

    1. 5
    2. 8
    3. SyntaxError
    4. None of these
    اس سوال کو وضاحت کے ساتھ پڑھیں

    All Rights Reserved © TestPointpk.com