• 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. Compiler
    2. Modem
    3. Interpreter
    4. Translator
    اس سوال کو وضاحت کے ساتھ پڑھیں

    1. Serial advanced technic attachment
    2. Serial advanced technology attachment
    3. Serial advised technology attachment
    4. None of these
    اس سوال کو وضاحت کے ساتھ پڑھیں

    1. Syntax Error
    2. Logical error
    3. Both A and B
    4. None of these
    اس سوال کو وضاحت کے ساتھ پڑھیں

    مندرجہ ذیل میں سے کون سا نان وولیٹائل اسٹوریج ڈیوائس ہے جو بجلی بند ہونے کے بعد بھی ڈیٹا محفوظ رکھتا ہے؟
    1. ROM
    2. RAM
    3. CPU
    4. None of these
    اس سوال کو وضاحت کے ساتھ پڑھیں

    کمپیوٹر نیٹ ورکس میں فائر وال کا بنیادی کام کیا ہے؟
    1. To filter/prevent/block unauthorized access
    2. To block viruses
    3. To speed up network traffic
    4. None of these
    اس سوال کو وضاحت کے ساتھ پڑھیں

    All Rights Reserved © TestPointpk.com