page-banner
Chapter-8 Scope and Module
Q1.
…………… को केवल उस फ़ंक्शन के अंदर ही एक्सेस किया जा सकता है जिसमें उन्हें घोषित किया गया है, जबकि वैश्विक चर को सभी फ़ंक्शन द्वारा पूरे प्रोग्राम बॉडी में एक्सेस किया जा सकता है।<break-line><break-line>The …………… can be accessed only inside the function in which they are declared, whereas global variables can be accessed throughout the program body by all functions.
A. ग्लोबल वेरिएबल/Global variables
B. लोकल वेरिएबल/Local variables
C. पता नहीं/Can’t say
D. इनमें से कोई नहीं/None of these
View Answer
Q2.
__________ फ़ंक्शंस का एक सेट है जिसे आप अपने एप्लिकेशन में शामिल करना चाहते हैं।<break-line><break-line>__________ is a set of functions you want to include in your application.
A. मॉड्यूल/Module
B. इम्पोर्ट/Import
C. ऑब्जेक्ट/Objects
D. इनमें से कोई नहीं/None of these
View Answer
Q3.
पैकेज से सभी मॉड्यूल इम्पोर्ट करने के लिए कौन सा कथन सही है<break-line><break-line>Which statement is correct to import all modules from the package
A. from package import all
B. from package import *
C. from package include all
D. from package include *
View Answer
Q4.
इनमें से कौन सी परिभाषा मॉड्यूल का सही वर्णन करती है?<break-line><break-line>Which of these definitions correctly describes a module?
A. ट्रिपल कोट्स द्वारा दर्शाया गया है/Denoted by triple quotes for providing the specification of certain program elements
B. प्रोग्राम में शामिल कार्यों का डिज़ाइन/Design and implementation of specific functionality to be incorporated into a program
C. उपयोग की विशिष्टता/Defines the specification of how it is to be used
D. कोई भी प्रोग्राम जो कोड पुन: उपयोग करता है/Any program that reuses code
View Answer
Q5.
निम्नलिखित में से कौन “from …. import ……” बारे में गलत है<break-line><break-line>Which of the following is false about “from …. import ……” form of import?
A. सिंटैक्स है: from modulename import identifier
B. यह कुछ भी इम्पोर्ट नहीं करता है/This form of import does not import anything
C. इम्पोर्ट मॉड्यूल नेमस्पेस का हिस्सा बन जाता है
D. पहचानकर्ताओं को सीधे एक्सेस किया जाता है
View Answer