page-banner
Chapter-5 (Part-1) Sequence Data Types
Q16.
q.pop(1) के बाद सूची में क्या आइटम होंगे?

What will be the items of list q after q.pop(1) if
q = [3, 4, 5, 20, 5, 25, 1, 3]
A. [3, 4, 5, 20, 5, 25, 1, 3]
B. [1, 3, 3, 4, 5, 5, 20, 25]
C. [3, 5, 20, 5, 25, 1, 3]
D. [1, 3, 4, 5, 20, 5, 25]
View Answer
Q17.
निम्नलिखित में से किस डेटा प्रकार में डुप्लीकेट आइटम की अनुमति नहीं है?

In which of the following data types are duplicate items not allowed?
A. list
B. dictionary
C. set
D. None of these
View Answer
Q18.
निम्नलिखित कोड का परिणाम क्या है?

What is the output of the following code?
a = set('dcma')
b = set('mlpc')
print(a ^ b)
A. {'d', 'c', 'm', 'a', 'm', 'l', 'p', 'c'}
B. {'m', 'l', 'p', 'c'}
C. {'d', 'c', 'm', 'a'}
D. None of these
View Answer
Q19.
निम्नलिखित कथन का आउटपुट क्या है?

What is the output of the following statement?
print((2, 4) + (1, 5))
A. (2, 4), (4, 5)
B. (3, 9)
C. (2, 4, 1, 5)
D. Invalid Syntax
View Answer
Q20.
निम्नलिखित कोड का परिणाम क्या है?

What is the output of the following code?
dict = {"Joey": 1, "Rachel": 2}
dict.update({"Phoebe": 2})
print(dict)
A. {"Joey":1,"Rachel":2,"Phoebe":2}
B. {"Joey":1,"Rachel":2}
C. {"Joey":1,"Phoebe":2}
D. Error
View Answer

Create Account