page-banner
Chapter-5 (Part-1) Sequence Data Types
Q1.
निम्नलिखित में से कौन-सा अपरिवर्तनीय डेटा प्रकार है?

Which one of the following is immutable data type?
A. list
B. set
C. tuple
D. dict
View Answer
Q2.
किस प्रकार का डेटा है:

What type of data is:
arr = [(1, 1), (2, 2), (3, 3)]
A. List of tuples
B. Tuples of lists
C. Array of tuples
D. Invalid type
View Answer
Q3.
किस डेटा प्रकार में इंडेक्सिंग मान्य नहीं है?

In which data type, indexing is not valid?
A. list
B. dictionary
C. string
D. none of the above
View Answer
Q4.
निम्नलिखित कोड का आउटपुट क्या है?

What is the output of following code?
a = set('abc')
b = set('cd')
print(a ^ b)
A. {a,b,c,d}
B. {'c', 'b', 'a', 'd'}
C. {'b', 'a', 'd'}
D. None of these
View Answer
Q5.
टपल के 5वें एलिमेंट को 'Hello' कैसे सेट करें?

How can you set the 5th element of a tuple to 'Hello'?
A. arr[4] = 'Hello'
B. arr(4) = 'Hello'
C. Elements of tuple cannot be changed
D. arr[5] = 'Hello'
View Answer