page-banner
Python M3-R5.1 MCQs SET-16
Q6.
round (0.5) – round(-0.5) का नतीजा क्या है?

What is the result of round (0.5) – round(-0.5)?
A. 1.0
B. 2.0
D. 0.0
View Answer
Q7.
________ फ़ंक्शन मूल सरणी को संशोधित करता है और _________ फ़ंक्शन सरणी का एक नया उदाहरण बनाता है।

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.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

What will be the output of the following Python code?
for i in range(2.0):
    print(i)
A. 0.0 1.0
B. 0 1
C. error
D. none of the mentioned
View Answer
Q9.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

What will be the output of the following Python code?
for i in range(int(2.0)):
    print(i)
A. 0.0 1.0
B. 0 1
C. error
D. none of the mentioned
View Answer
Q10.
लोकल वेरिएबल का नाम अंडरस्कोर से क्यों शुरू होता है?

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

Create Account