Python - Sets In Python
Questions No: 1/21

Which of the following statements is used to create an empty set?
एम्प्टी सेट क्रिएट करने के लिए निम्नलिखित में से किस स्टेट्मेंट का यूज़ किया जाता है?

Questions No: 2/21

The ____________ function removes the first element of a set and the last element of a list.
____________ फ़ंक्शन सेट का फर्स्ट एलिमेंट् और किसी लिस्ट का लास्ट एलिमेंट निकालता है।

Questions No: 3/21

Which of the following is not a valid set operation in python?
निम्नलिखित में से कौन सा पायथन में वैध सेट ऑपरेशन नहीं है?

Questions No: 4/21

What will be the output of the following Python code?

a={5,6,7,8}
b={7,8,9,10} 
print(len(a+b))

Questions No: 5/21

Which of the following lines of code will result in an error?
कोड की निम्नलिखित लाइन्स में से कौन सा एरर होगा ?

Questions No: 6/21

If we have two sets, s1 and s2, and we want to check if all the elements of s1 are present in s2 or not, we can use the function:
यदि हमारे पास दो सेट हैं, s1 और s2, और हम यह चेक करना चाहते हैं कि s1 के सभी एलिमेंट s2 में मौजूद हैं या नहीं, हम फ़ंक्शन का यूज़ कर सकते हैं:

Questions No: 7/21

In which of the following data type, duplicate items are not allowed ?
निम्नलिखित में से किस डेटा प्रकार में डुप्लीकेट आइटम की अनुमति नहीं है?

Questions No: 8/21

What will be the output of the following Python code?

d = {0, 1, 2}
for x in d.values():
    print(x)

Questions No: 9/21

If a={5,6,7}, what happens when a.add(5) is executed?
यदि a = {5,6,7}, तो क्या होता है जब a.add (5) निष्पादित होता है?

Questions No: 10/21

Which of these about a set is not true?
इनमें से कौन सा एक सेट के बारे में सही नहीं है?

Questions No: 11/21

What is the output of the following code?

a = set('dcma')
b = set('mlpc')
print(a^b)

Questions No: 12/21

What will be the output of the following Python code?

>>> a={5,6,7}
>>> sum(a,5)

Questions No: 13/21

Which of the following functions will return the symmetric difference between two sets, x and y?
निम्नलिखित में से कौन सा कार्य दो सेटों, x और y के बीच सिमेट्रिक डिफ्रेंस को रिटर्न करेगा ?

Questions No: 14/21

What will be the output of the following Python code?

d = {0, 1, 2}
for x in d:
    print(x)

Questions No: 15/21

What will be the output of the following Python code?

d = {0, 1, 2}
for x in d:
    print(d.add(x))

Questions No: 16/21

Which one the following is a mutable data type ?
निम्नलिखित में से कौन सा एक परिवर्तनशील डेटा प्रकार है?

Questions No: 17/21

Which of the following functions cannot be used on heterogeneous sets?
निम्न में से किस फ़ंक्शन का यूज़ हेटरजीन्यस सेटों पर नहीं किया जा सकता है?

Questions No: 18/21

What will the output of following code?

a={1,2,3}
b={1,2,3,4}
c=a.issuperset(b)
print(c)

Questions No: 19/21

If a={5,6,7,8}, which of the following statements is false?
यदि a = {5,6,7,8}, निम्नलिखित में से कौन सा स्टेट्मेंट गलत है?

Questions No: 20/21

Which of these about a frozenset is not true?
फ्रोजेनसेट के बारे में इनमें से कौन सा सच नहीं है?

Questions No: 21/21

Set makes use of __________ Dictionary makes use of ____________
सेट __________ का यूज़ करता है शब्दकोश ____________ का यूज़ करता है