page-banner
Chapter-5 (Part-2) Sequence Data Types
Q11.
निम्नलिखित पीस ऑफ़ कोड का आउटपुट क्या होगा ?

What is the output of the following piece of code?
a=list((45,)*4)
print(a)
A. [(45),(45),(45),(45)]
B. (45,45,45,45)
C. [45,45,45,45]
D. Syntax error
View Answer
Q12.
निम्नलिखित पाइथन कोड का आउटपुट क्या होगा ?

What will be the output of the following Python code?
list1 = [1, 2, 3, 4]
list2 = [5, 6, 7, 8] 
print(len(list1 + list2))
A. 2
B. 4
C. 5
D. 8
View Answer
Q13.
निम्नलिखित पाइथन कोड का आउटपुट क्या होगा ?

What will be the output of the following Python code?
a=[14,52,7]
b=a.copy()
b is a
A. True
B. False
C. Can’t say
D. None of these
View Answer
Q14.
निम्नलिखित स्टेटमेंट्स का आउटपुट क्या होगा ?

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

What will be the output after the following statements?
m = {'Listen' :'Music', 'Play' : 'Games'}
n = m['Play']
print(n)
A. Listen
B. Music
C. Play
D. Games
View Answer

Create Account