• Call Us : 03082533000 (WhatsApp)
  • Email Us : TestPointpk.com@gmail.com
Sticky Note
In the context of software design patterns, what does the Singleton pattern ensure?
سافٹ ویئر ڈیزائن پیٹرن کے تناظر میں، سنگلٹن پیٹرن کیا یقینی بناتا ہے؟
  1. A class can be subclassed only once
  2. A class has only one instance and provides a global point of access to it
  3. A class can be instantiated only once per thread
  4. None of these
Explanation
  • The Singleton pattern ensures that a class has only one instance throughout the application.
  • It provides a global point of access to that single instance.
  • It preventing the creation of additional instances.
  • Related MCQs

    دوسری نسل کے کمپیوٹر میں مندرجہ ذیل میں سے کون سی ٹیکنالوجیز استعمال ہوئی؟
    1. Vacum Tubes
    2. Transistors
    3. Integrated circuits
    4. None of these
    اس سوال کو وضاحت کے ساتھ پڑھیں

    کمپیوٹر کا بانی کس کو کہا جاتا ہے؟
    1. Barbara Liskov
    2. Tim Berners-Lee
    3. Charles Babbage
    4. John von Neumann
    اس سوال کو وضاحت کے ساتھ پڑھیں

    کون سی سہولت دو یا دو سے زیادہ ٹاسک، جابز یا پروگرامز کو بیک وقت اجازت کی اجازت ہے؟
    1. Multi-computing
    2. Multi-processing
    3. Multi-tasking
    4. None of these
    اس سوال کو وضاحت کے ساتھ پڑھیں

    درج ذیل میں سے آپریٹنگ سسٹم کی مثال کون سی ہے؟
    1. Photoshop
    2. MS Windows
    3. MS Word
    4. None of these
    اس سوال کو وضاحت کے ساتھ پڑھیں

    آپریٹنگ سسٹم کے کرنل کا بنیادی کام کیا ہے؟
    1. Manage hardware and system resources
    2. Run user applications
    3. Provide internet connectivity
    4. None of these
    اس سوال کو وضاحت کے ساتھ پڑھیں

    All Rights Reserved © TestPointpk.com