page-banner
Chapter-7 File Processing
Q31.
यदि हम किसी फ़ाइल को राइट मोड में खोलते हैं और फ़ाइल मौजूद नहीं है, तो कौन सी त्रुटि उत्पन्न होगी?<break-line><break-line>If we open a file in write mode and file does not exists, which of the error will generate?
A. File Found Error
B. File Not Exist Error
C. File Not Found Error
D. इनमें से कोई नहीं/None of these
View Answer
Q32.
फ़ाइल ऑब्जेक्ट infile से फ़ाइल की शेष पंक्तियों को पढ़ने का कार्य कौन सा है?<break-line><break-line>Which is the function to read the remaining lines of the file from a file object infile?
A. infile.read(2)
B. infile.read()
C. infile.readlines()
D. infile.readline()
View Answer
Q33.
सभी अक्षरों को पढ़ने के लिए किस फ़ंक्शन का उपयोग किया जाता है?<break-line><break-line>Which function is used to read all the characters?
A. readall()
B. read()
C. readcharacters()
D. readchar()
View Answer
Q34.
बाइनरी प्रारूप में डेटा लिखने के लिए उपयोग किया जाने वाला एक फ़ंक्शन:<break-line><break-line>A function used for writing data in the binary format:
A. write
B. output
C. send
D. dump
View Answer
Q35.
निम्नलिखित में से कौन सा अमान्य मोड है?<break-line><break-line>Which of the following is an invalid mode?
A. a
B. ar+
C. r+
D. w
View Answer