page-banner
Chapter-8 Scope and Module
Q6.
किसी मॉड्यूल को दूसरे मॉड्यूल में उपयोग करने के लिए, आपको इसे ………… का उपयोग करके आयात करना होगा।<break-line><break-line>To use a module in another module, you must import it using an …………. statement.
A. import
B. include
C. दोनों a और b/both a and b
D. इनमें से कोई नहीं/None of these
View Answer
Q7.
निम्नलिखित में से कौन सा मॉड्यूल का उपयोग करने का लाभ नहीं है<break-line><break-line>Which of the following is not an advantage of using modules
A. कोड के पुन: उपयोग का साधन/Provides a means of reuse of program code
B. कार्य विभाजन का साधन/Provides a means of dividing up tasks
C. प्रोग्राम का आकार कम करना/Provides a means of reducing the size of the program
D. प्रत्येक भाग को टेस्ट करने का कोई साधन नहीं/Provides a means of testing individual parts of the program
View Answer
Q8.
किसी फ़ंक्शन के बाहर परिभाषित वेरिएबल को क्या कहा जाता है?<break-line><break-line>What is a variable defined outside a function referred to as?
A. स्थैतिक वेरिएबल/Static variable
B. ग्लोबल वेरिएबल/Global variable
C. लोकल वेरिएबल/Local variable
D. ऑटोमैटिक वेरिएबल/Automatic variable
View Answer
Q9.
निम्नलिखित में से कौन सी DocString की एक विशेषता है?<break-line><break-line>Which of the following is a feature of DocString?
A. डॉक्यूमेंटेशन का आसान तरीका/Provide a convenient way of associating documentation
B. हर फ़ंक्शन में होनी चाहिए/All functions should have a docstring
C. doc को __doc__ से एक्सेस किया जा सकता है
D. उपरोक्त सभी/All of the mentioned
View Answer
Q10.
इनमें से कौन सी पायथन में पैकेज की परिभाषा है?<break-line><break-line>Which of these is the definition for packages in Python?
A. पायथन मॉड्यूल का एक फ़ोल्डर/A folder of Python modules
B. मॉड्यूल का प्रयोग करने वाला प्रोग्राम सेट
C. मुख्य मॉड्यूल का सेट
D. परिभाषाएं और कथन वाली फाइलें
View Answer