page-banner
Chapter-6 (Part-1) Python Function
Q11.
__________ मेथड बिल्ट-इन पायथन हेल्प सिस्टम को कॉल करता है।<break-line><break-line>__________ method calls the built-in Python help system.
A. helpview()
B. help()
C. helpme()
D. None of these
View Answer
Q12.
__________ विधि सभी अपरकेस वर्णों को दिए गए स्ट्रिंग के लोअरकेस और इसके विपरीत में परिवर्तित करती है, और इसे वापस करती है।<break-line><break-line>__________ method converts all uppercase characters to lowercase and vice versa of the given string, and returns it.
A. uppertolower
B. isUpper
C. toUpper
D. swapcase
View Answer
Q13.
निम्नलिखित प्रोग्राम का आउटपुट क्या है?<break-line><break-line>What is the output of the following program?<pre><code>def myfunc(a): a=a+2 a=a*2 return a print(myfunc(2))</code></pre>
A. 8
B. 16
C. Indentation Error
D. Runtime Error
View Answer
Q14.
एक फ़ंक्शन दिया गया है जो कोई मान नहीं लौटाता है, शेल पर निष्पादित होने पर कौन सा मान दिखाया जाता है?<break-line><break-line>Given a function that does not return any value, what value is shown when executed at the shell?
A. int
B. bool
C. void
D. None
View Answer
Q15.
एक स्ट्रिंग s="Welcome" दिया गया है, निम्न में से कौन सा कोड गलत है?<break-line><break-line>Given a string s="Welcome", which of the following code is incorrect?
A. print s[0]
B. print s.lower()
C. s[1]='r'
D. print s.strip()
View Answer