page-banner
Chapter-6 (Part-1) Python Function
Q41.
निम्नलिखित में से कौन सा पायथन में फ़ंक्शन का उपयोग है?<break-line><break-line>Which of the following is the use of function in python?
A. कार्य कार्यक्रमों के पुन: प्रयोज्य टुकड़े हैं/Functions are reusable pieces of programs
B. कार्य आपके आवेदन के लिए बेहतर मॉड्यूलरिटी प्रदान नहीं करते हैं/Functions don’t provide better modularity for your application
C. आप अपने स्वयं के कार्य भी नहीं बना सकते हैं/You can’t also create your own functions
D. सभी उल्लिखित/All of the mentioned
View Answer
Q42.
सही फंक्शन हैडर की पहचान करे |<break-line><break-line>Identify the correct function header.
A. def fun(a=2, b=3, c)
B. def fun(a=2, b, c=3)
C. def fun(a, b=2, c=3)
D. def fun(a, b, c=3, d)
View Answer
Q43.
lstrip () विधि का उपयोग इसके लिए किया जाता है:<break-line><break-line>lstrip() method is used for:
A. सभी अनुगामी वर्णों को हटा दें/delete all the trailing characters
B. सभी प्रमुख पात्रों को हटा दें/delete all the leading characters
C. सभी प्रमुख और अनुगामी वर्णों को हटा दें/delete all the leading and trailing characters
D. अपरकेस वर्णों को हटा दें/delete upper case characters
View Answer
Q44.
निम्नलिखित कोड का आउटपुट क्या होगा |<break-line><break-line>What is the output of the following code?<pre><code>def add(a, b): return a+5, b+5 result = add(3, 2) print(result)</code></pre>
A. 15
B. 8
C. (8,7)
D. Error
View Answer
Q45.
निम्नलिखित पाइथन प्रोग्राम का आउटपुट क्या होगा |<break-line><break-line>What will be the output of the following Python program?<pre><code>def addItem(listParam): listParam += [1] mylist = [1, 2, 3, 4] addItem(mylist) print(len(mylist))</code></pre>
A. 5
B. 8
C. 2
D. 1
View Answer