page-banner
Python M3-R5.1 MCQs SET-10
Q6.
मान लीजिए q = [3, 4, 5, 20, 5, 25, 1, 3], तो q.pop(1) के बाद q सूची में क्या आइटम होंगे?<break-line><break-line>Assume q = [3, 4, 5, 20, 5, 25, 1, 3], then what will be the items of q list after q.pop(1) ?
A. [3, 4, 5, 20, 5, 25, 1, 3]
B. [1, 3, 3, 4, 5, 5, 20, 25]
C. [3, 5, 20, 5, 25, 1, 3]
D. [1, 3, 4, 5, 20, 5, 25]
View Answer
Q7.
निम्नलिखित में से किस डेटा प्रकार में डुप्लीकेट आइटम की अनुमति नहीं है?<break-line><break-line>In which of the following data type, duplicate items are not allowed ?
A. list
B. dictionary
C. set
D. None of the above
View Answer
Q8.
निम्नलिखित कोड का परिणाम क्या है?<break-line><break-line>What is the output of the following code?<pre><code>import numpy as np a = np.array([1,2,3,5,8]) b = np.array([0,1,5,4,2]) c = a + b c = c * a print(c[2])</code></pre>
A. 6
B. 24
D. None of these
View Answer
Q9.
निम्नलिखित कोड का परिणाम क्या है?<break-line><break-line>What is the output of the following code ?<pre><code>import numpy as np a = np.array([[1,2,3]]) print(a.shape)</code></pre>
A. (2, 3)
B. (3, 1)
C. (1, 3)
D. None of these
View Answer
Q10.
कोड में त्रुटियां खोजने की प्रक्रिया को __________ कहा जाता है।<break-line><break-line>The process of finding errors in code is called as __________.
A. Compiling
B. Running
C. Testing
D. Debugging
View Answer