page-banner
Chapter-5 (Part-1) Sequence Data Types
Q36.
list1 में एक तत्व (5) जोड़ने के लिए किस फ़ंक्शन का उपयोग किया जाता है?

Which function is used to add an element (5) in the list1?
A. list1.sum(5)
B. list1.add(5)
C. list1.append(5)
D. list1.addelement(5)
View Answer
Q37.
की वैल्यू पेअर होता है .............. में.

Key-value pair is found in __________.
A. list
B. set
C. tuple
D. dictionary
View Answer
Q38.
__________ ऑपरेटर दिए गए आइटम्स की संख्या के लिए एक सूची को दोहराता है

__________ operator repeats a list for the given number of items.
A. pow
B. *
C. repeat
D. None of these
View Answer
Q39.
निम्नलिखित पायथन कोड का आउटपुट क्या है?

What is the output of the following Python code?
tuple1 = (5, 1, 7, 6, 2)
tuple1.pop(2)
print(tuple1)
A. (5, 1, 6, 2)
B. (5, 1, 7, 6)
C. (5, 1, 7, 6, 2)
D. Error
View Answer
Q40.
जब हम list("hello") निष्पादित करते हैं तो आउटपुट क्या होता है?

What is the output when we execute list("hello")?
A. ['h', 'e', 'l', 'l', 'o']
B. [' hello']
C. ['llo']
D. ['olleh']
View Answer

Create Account