Scope and Modules
sys.argv में प्रत्येक element का प्रकार क्या है?
What is the type of each element in sys.argv?
किसी फंक्शन के बाहर परिभाषित वेरिएबल को क्या कहते हैं?
What is a variable defined outside a function called?
LEGB Rule में E से तात्पर्य Entry है
In LEGB Rule, E stands for Entry.
Correct Answer: B) False
python में PIP का क्या काम है ?
What is the function of PIP in python?
Package एक __________ है, जिसमे multiple _________ होते है ?
Package is a __________, which contains multiple _________?
Correct Answer: D) namespace, module
local variables का नाम अंडरस्कोर से क्यों शुरू होता है?
Why do names of local variables start with an underscore?
पायथन में LEGB का पूर्ण रूप क्या है?
What is the full form of LEGB in Python?
निम्नलिखित का आउटपुट क्या होगा?
What will be the output of the following ?
import sys
sys.stdout.write('Hello\n')
sys.stdout.write('Python\n') पायथन स्क्रिप्ट को निष्पादन योग्य प्रोग्राम में बदलने के लिए किस मॉड्यूल का उपयोग किया जा सकता है?
Which module can be used to convert a Python script into an executable program?
Correct Answer: B) py2exe
पायथन में वेरिएबल का दायरा क्या है?
What is the scope of a variable in Python?
पायथन में "नेमस्पेस" शब्द का क्या अर्थ है?
What does the term "namespace" refer to in Python?
पायथन मानक लाइब्रेरी में कौन सा मॉड्यूल कमांड लाइन से प्राप्त विकल्पों को पार्स करता है?
Which module in the python standard library parses options received from the command line ?
randint() फ़ंक्शन का उपयोग करने के लिए कौन सा मॉड्यूल आयात किया जाना है?
Which module is to be imported for using randint( ) function ?
किसी मॉड्यूल को दूसरे मॉड्यूल में उपयोग करने के लिए, आपको इसे ________ स्टेटमेंट का उपयोग करके आयात करना होगा।
To use a module in another module, you must import it using an ________ statement.
Correct Answer: A) import
निम्नलिखित में से कौन सा मॉड्यूल का उपयोग करने का लाभ नहीं है?
Which of the following is not an advantage of using modules ?
पैकेज से सभी मॉड्यूल आयात करने के लिए कौन सा कथन सही है?
Which statement is correct to import all modules from the package ?
यादृच्छिक लाइब्रेरी में मौजूद फ़ंक्शंस के उपयोग को शामिल करने के लिए, हमें विकल्प का उपयोग करना चाहिए:
To include the use of functions which are present in the random library, we must use the option:
"से..." के बारे में निम्नलिखित में से कौन सा गलत है? आयात ……” आयात का रूप?
Which of the following is false about “from …. import ……” form of import?
बाइनरी फ़ाइल डेटा को पढ़ने के लिए ___________ फ़ंक्शन का उपयोग किया जाता है।
To read binary files data ___________ function is used.
पायथन मॉड्यूल में __init__.py फ़ाइल का कार्य क्या है?
What is the function of the __init__.py file in a Python module?
पायथन लिपि में if __name__ == "__main__": कथन का उद्देश्य क्या है?
What is the purpose of the if __name__ == "__main__": statement in a Python script?
पायथन में
What does the term "namespace" refer to in Python?
Correct Answer: A) The scope of a variable
पायथन में किस मॉड्यूल का उपयोग नेटवर्क सॉकेट के साथ काम करने के लिए किया जा सकता है?
which module in python can be used for working with network socket?
Sys.argv कितने प्रकार का होता है?
What is the type of sys.argv
कैलेंडर के साथ काम करने के लिए पायथन के अंतर्निहित मॉड्यूल का नाम क्या है
What is the name of Python’s built-in module for working with calendars
कोड स्निपेट के निष्पादन समय को मापने के लिए पायथन के अंतर्निहित मॉड्यूल का नाम क्या है
What is the name of Python’s built-in module for measuring execution time of code snippets
Python में मॉड्यूल इंपोर्ट करने के लिए कौन-सा कीवर्ड उपयोग होता है
Which operator/keyword is used to import modules in Python
पैकेज से सभी मॉड्यूल आयात करने के लिए कौन सा कथन सही है
Which statement is correct to import all modules from the package
निम्नलिखित स्टेटमेंट्स का आउटपुट क्या होगा
What will be the output after the following statements
import os
x = os.getcwd()
print(x)