page-banner
Python M3-R5.1 MCQs SET-16
Q6.
round (0.5) – round(-0.5) का नतीजा क्या है?<break-line><break-line>What is the result of round (0.5) – round(-0.5)?
A. 1.0
B. 2.0
D. 0.0
View Answer
Q7.
________ फ़ंक्शन मूल सरणी को संशोधित करता है और _________ फ़ंक्शन सरणी का एक नया उदाहरण बनाता है।<break-line><break-line>The ________ function modifies the original array and _________ function creates a new instance of the array.
A. reshape,resize
B. resize,reshape
C. ndims,resize
D. reshape, ndims
View Answer
Q8.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?<break-line><break-line>What will be the output of the following Python code?<pre><code>for i in range(2.0): print(i)</code></pre>
A. 0.0 1.0
B. 0 1
C. error
D. none of the mentioned
View Answer
Q9.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?<break-line><break-line>What will be the output of the following Python code?<pre><code>for i in range(int(2.0)): print(i)</code></pre>
A. 0.0 1.0
B. 0 1
C. error
D. none of the mentioned
View Answer
Q10.
लोकल वेरिएबल का नाम अंडरस्कोर से क्यों शुरू होता है?<break-line><break-line>Why does the name of local variables start with an underscore discouraged?
A. To identify the variable
B. It confuses the interpreter.
C. It indicates a private variable of a class
D. None of these
View Answer