• Call Us : 03082533000 (WhatsApp)
  • Email Us : TestPointpk.com@gmail.com
Sticky Note
What will be the output of the following python code? a= {1, 2, 3} b= {4, 5} c= a + b print (c)
  1. Error
  2. [5, 7]
  3. [1, 2, 3, 4, 5] [1, 2, 3], [4, 5]
  4. None of these
Explanation
  • In Python, the + operator is not supported for sets; sets can only be combined using methods like union() or |.
  • The given code will raise a TypeError.
  • 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