page-banner
Chapter-7 File Processing
Q56.
कमांड लाइन से प्राप्त आर्गुमेंट कहाँ संग्रहीत हैं?<break-line><break-line>Where are the arguments received from the command line stored?
A. sys.argv
B. os.argv
C. argv
D. none of the mentioned
View Answer
Q57.
निम्नलिखित में से कौन सा फ़ंक्शन हमें पायथन के उस संस्करण को खोजने में मदद कर सकता है जिस पर हम वर्तमान में काम कर रहे हैं?<break-line><break-line>Which of the following functions can help us to find the version of python that we are currently working on?
A. sys.version
B. sys.version()
C. sys.version(0)
D. sys.version(1)
View Answer
Q58.
निम्नलिखित में से कौन सा फ़ंक्शन sys मॉड्यूल के अंतर्गत परिभाषित नहीं है?<break-line><break-line>Which of the following functions is not defined under the sys module?
A. sys.platform
B. sys.path
C. sys.readline
D. sys.argv
View Answer
Q59.
निम्नलिखित में से कौन सी विधि पूर्णांक मान लौटाती है।<break-line><break-line>Which of the following method returns an integer value?
A. seek()
B. read()
C. tell()
D. readline()
View Answer
Q60.
निम्नलिखित का आउटपुट लिखें<break-line><break-line>Write the output of the following:<pre><code>f = open("test.txt", "w+") f.write("GyanXp-App") f.seek(5) a = f.read(3) print(a)</code></pre>
A. Gya
B. Xp-
C. p-A
D. No output
View Answer