page-banner
Chapter-5 (Part-2) Sequence Data Types
Q6.
निम्नलिखित स्टेटमेंट्स का आउटपुट क्या होगा ?

What will be the output of the following statements?
x = [5, 4, 3, 2, 1]
x.reverse()
print(x)
A. [0, 1, 2, 3, 4, 5]
B. [0, 5, 4, 3, 2, 1]
C. [5, 4, 3, 2, 1, 0]
D. [1, 2, 3, 4, 5]
View Answer
Q7.
निम्नलिखित स्टेटमेंट्स का आउटपुट क्या होगा ?

What will be the output after the following statements?
m = ['July', 'September', 'December']
n = m[1]
print(n)
A. ['July', 'September', 'December']
B. July
C. September
D. December
View Answer
Q8.
निम्नलिखित स्टेटमेंट्स का आउटपुट क्या होगा ?

What will be the output after the following statements?
m = {'m', 'n', 'o', 'p'}
if 'n' in m:
    print('n', end=' ')
A. n
B. mnop
C. m n o p
D. {‘m’, ‘n’, ‘o’, ‘p’}
View Answer
Q9.
निम्नलिखित स्टेटमेंट्स का आउटपुट क्या होगा ?

What will be the output after the following statements?
m = [25, 34, 70, 63]
n = str(m[1]) + str(m[2])
print(n)
A. 2534
B. 95
C. 104
D. 3470
View Answer
Q10.
निम्नलिखित पाइथन कोड का आउटपुट क्या होगा ?

What will be the output of the following Python code?
points = [[1, 2], [3, 1.5], [0.5, 0.5]]
points.sort()
print(points)
A. [[1, 2], [3, 1.5], [0.5, 0.5]]
B. [[3, 1.5], [1, 2], [0.5, 0.5]]
C. [[0.5, 0.5], [1, 2], [3, 1.5]]
D. [[0.5, 0.5], [3, 1.5], [1, 2]]
View Answer

Create Account