• 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. 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