page-banner
Python M3-R5.1 MCQs SET-3
Q11.
f.read(5) एक फाइल (file object is 'f) से __________ पढ़ेगा

f.read(5) will read __________from a file (file object is 'f).
A. 5 characters
B. 5 words
C. 5 lines
D. None of the above
View Answer
Q12.
निम्नलिखित में से कौन-सा अपरिवर्तनीय डेटा प्रकार है?

Which one of the following is immutable data type?
A. list
B. tuple
C. set
D. dict
View Answer
Q13.
निम्नलिखित का आउटपुट क्या है?

What is the output of the following?

m = 0
while m < 5:
    print(m)
    m += 1
    if m == 3:
        break
else:
    print(0)
A. 0120
B. 012
C. 00102
D. Error
View Answer
Q14.
निम्नलिखित कोड के लिए आउटपुट क्या होगा?

What will be output for the following code?

import numpy as np
a = np.array([[1,2,3],[0,1,4]])
print(a.size)
A. 1
B. 5
C. 6
D. 4
View Answer
Q15.
पायथन में Numpy array में zeros() फ़ंक्शन का उपयोग क्या है?

What is the use of the zeros() function in Numpy array in python?
A. To make a Matrix with all element 0
B. To make a Matrix with all diagonal element 0
C. To make a Matrix with first row 0
D. None of the above
View Answer

Create Account