page-banner
Chapter-5 (Part-1) Sequence Data Types
Q31.
values() डिक्शनरी का एक फंक्शन है जो डिक्शनरी से सभी वैल्यू प्राप्त करता है।<break-line><break-line>values() is a function of dictionary that gets all values.
A. True
B. False
C. can’t say
D. None of these
View Answer
Q32.
frozenset(s) फ़ंक्शन टपल्स के सीक्वेंस को डिक्शनरी में परिवर्तित करता है।<break-line><break-line>frozenset(s) function converts a sequence of tuples to dictionary.
A. True
B. False
C. can’t say
D. None of these
View Answer
Q33.
पायथन में एक फ़ंक्शन जो एक स्ट्रिंग को लिस्ट में बदलता है<break-line><break-line>A function converts a string to a list in Python.
A. list()
B. filter()
C. tuple()
D. None of these
View Answer
Q34.
निम्न में से कौन डिक्शनरी में key= “tiger” के लिए key-value pair को हटाएगा?<break-line><break-line>Which of the following will delete key-value pair for key = “tiger” in dictionary?<pre><code>dic = { "lion" : "wild", "tiger" : "wild", "cat" : "domestic", "dog" : "domestic" }</code></pre>
A. del dic["tiger"]
B. dic["tiger"].delete()
C. delete(dic.["tiger"])
D. del(dic.["tiger"])
View Answer
Q35.
नीचे दी गई ऑब्जेक्ट किस डेटा टाइप की है?<break-line><break-line>What data type is the object below?<pre><code>L = [1, 23, 'hello', 1]</code></pre>
A. List
B. Dictionary
C. Tuple
D. Array
View Answer