page-banner
Python M3-R5.1 MCQs SET-15
Q6.
निम्नलिखित List में फेरबदल करने के लिए सही command क्या है?<break-line><break-line>What is the correct command to shuffle the following list?<pre><code>fruit = ['apple', 'banana', 'papaya', 'cherry']</code></pre>
A. fruit.shuffle()
B. shuffle(fruit)
C. random.shuffle(fruit)
D. random.shuffleList(fruit)
View Answer
Q7.
नीचे दिए गए कथनों में से कौन सा/से सत्य है/हैं?<break-line><break-line>Which of the following statements given below is/are true?
A. Tuples have structure; lists have an order.
B. Tuples are homogeneous, lists are heterogeneous
C. Tuples are immutable, lists are mutable
D. All of them.
View Answer
Q8.
निम्नलिखित कोड का आउटपुट क्या है:<break-line><break-line>What is the output of the following code:<pre><code>L = ['a','b','c','d'] print("".join(L))</code></pre>
A. Error
B. None
C. abcd
D. ['a','b','c','d']
View Answer
Q9.
कोड प्रिंट का आउटपुट क्या है (9//2)<break-line><break-line>What is the output of the code print (9//2)
A. 4.5
B. 4.0
C. 4
D. Error
View Answer
Q10.
निम्नलिखित प्रोग्राम का आउटपुट क्या है:<break-line><break-line>What is the output of the following program:<pre><code>i = 0 while i < 3: print(i) i = i + 1 print(i + 1)</code></pre>
A. 0 2 1 3 2 4
B. 0 1 2 3 4 5
C. Infinite loop
D. 0 1 2 3
View Answer