page-banner
Chapter-7 File Processing
Q36.
os.close(f) क्या करता है?<break-line><break-line>What does os.close(f) do?
A. प्रोसेस f को समाप्त करता है/terminate the process f
B. यदि f प्रतिक्रिया नहीं दे रहा है तो इसे समाप्त करें/terminate the process f if f is not responding
C. फ़ाइल डिस्क्रिप्टर f को बंद करता है/close the file descriptor f
D. फ़ाइल पॉइंटर एंड के कितने पास है यह बताता है/return an integer telling how close the file pointer is to the end of file
View Answer
Q37.
seek() की सिंटैक्स है:<break-line><break-line>The syntax of seek() is:<break-line><pre><code>file_object.seek(offset[, reference_point])</code></pre><break-line>reference_point का क्या अर्थ है?<break-line>What does the reference_point indicate?
A. reference_point वर्तमान स्थिति को दर्शाता है / indicates the current position of the file object
B. reference_point प्रारंभिक स्थिति को दर्शाता है / indicates the starting position of the file object
C. reference_point अंतिम स्थिति को दर्शाता है / indicates the ending position of the file object
D. इनमें से कोई नहीं / None of the above
View Answer
Q38.
एक Python प्रोग्राम कमांड लाइन से कितने आर्गुमेंट स्वीकार कर सकता है?<break-line><break-line>How many arguments a Python program can accept from the command line?
A. एक / one
B. दो / Two
C. तीन / Three
D. कोई भी संख्या / any
View Answer
Q39.
readlines() विधि क्या लौटाती है?<break-line><break-line>What does readlines() method return?
A. डिक्शनरी / Dictionary
B. स्ट्रिंग / String
C. ट्यूपल / Tuple
D. सूची / List
View Answer
Q40.
जब हम फ़ाइल को एपेंड मोड में खोलते हैं तो फ़ाइल पॉइंटर फ़ाइल के ……….. पर होता है।<break-line><break-line>When we open file in append mode the file pointer is at the ……….. of the file.
A. फ़ाइल के बीच में कहीं भी / anywhere in between the file
B. अंत में / end
C. शुरुआत में / beginning
D. दूसरी पंक्ति पर / second line of the file
View Answer