File Processing
कौन सा कथन फ़ाइल से एक पंक्ति लौटाएगा (फ़ाइल ऑब्जेक्ट 'एफ' है)?
Which statement will return one line from a file (file object is ‘f’) ?
जब हम किसी फ़ाइल को read मोड में खोलने का प्रयास करते हैं जो मौजूद नहीं है तो निम्नलिखित में से कौन सी त्रुटि वापस आती है?
Which of the following error is returned when we try to open a file in read mode which does not exist ?
जब हम फ़ाइल को एपेंड मोड में खोलते हैं तो फ़ाइल पॉइंटर फ़ाइल के _________ पर होता है।
When we open file in append mode the file pointer is at the _________ of the file.
यदि हम किसी फ़ाइल को राइट मोड में खोलते हैं और फ़ाइल मौजूद नहीं है, तो कौन सी त्रुटि उत्पन्न होगी?
If we open a file in write mode and file does not exists, which of the error will generate ?
Correct Answer: D) None of these
सीएसवी का फुल फॉर्म क्या है?
What is full form of CSV ?
कथन 3 के लिए उत्तर चुनें.
Choose the answer for statement 3.
import ___________ # statement 1
rec = [ ]
while True:
rn = int(input("Enter"))
nm = input("Enter")
temp = [rn, nm]
rec.append(temp)
ch = input("Enter choice (Y/N)")
if ch.upper == "N":
break
f = open("stud.dat", "____________") #statement 2
__________ .dump(rec, f) #statement 3
_______.close( ) # statement 4 Correct Answer: B) pickle
कौन सा कथन फ़ाइल से एक पंक्ति लौटाएगा (फ़ाइल ऑब्जेक्ट „f‟ है)?
Which statement will return one line from a file (file object is „f?) ?
निम्नलिखित में से कौन सा फ़ंक्शन दो तर्क लेता है?
Which of the following function takes two arguments ?
कौन सा कथन एक फ़ाइल (फ़ाइल ऑब्जेक्ट "f") से 5 अक्षर पढ़ेगा?
Which statement will read 5 characters from a file(file object "f") ?
निम्नलिखित में से कौन फ़ाइल की संपूर्ण सामग्री (फ़ाइल ऑब्जेक्ट 'f') को पढ़ेगा?
Which of the following will read entire content of file (file object ‘f’) ?
निम्नलिखित में से किसमें डेटा स्थायी रूप से संग्रहीत किया जाता है?
In which of the following, data is stored permanently ?
Correct Answer: B) File
__________ फ़ंक्शन फ़ाइल पॉइंटर की वर्तमान स्थिति लौटाता है।
__________ function returns the current position of file pointer.
यदि फ़ाइल मौजूद नहीं है तो कौन सा मोड एक नई फ़ाइल बनाता है?
Which mode creates a new file if the file does not exist ?
एक _____________ जानकारी को ASCII या यूनिकोड वर्णों की एक धारा के रूप में संग्रहीत करता है अर्थात मानव पठनीय।
A _____________ stores information in the form of a stream of ASCII or unicode characters i.e. human readable.
Correct Answer: A) Text file
कौन सा कथन फ़ाइल पॉइंटर को shuru स्थिति से 10 बाइट्स aage ले जाएगा?
Which statement will move file pointer 10 bytes forward from begnining position ?
निम्नलिखित में से कौन सी त्रुटि दिए गए कोड द्वारा लौटाई जाती है?
Which of the following error is returned by the given code ?
>>> f = open(“test.txt”,”w”)
>>> f.write(345) Correct Answer: B) Type Error
seek() में, मान _______________ वर्तमान फ़ाइल स्थिति पर संदर्भ बिंदु निर्धारित करता है।
In seek(), value _______________ sets the reference point at the current file position.
बाइनरी फ़ाइल में डेटा पढ़ने के लिए निम्नलिखित में से किस फ़ंक्शन का उपयोग किया जाता है?
Which of the following function is used to read the data in binary file
काजल ने एक फ़ाइल को एक खास मोड में खोला। फ़ाइल खोलने के बाद, वह उस मोड को भूल गया। उस मोड के बारे में रोचक तथ्य ये हैं कि "अगर फ़ाइल मौजूद नहीं है, तो एक नई फ़ाइल बनाई जाएगी" और "उस मोड में फ़ाइल खोलने पर फ़ाइल हैंडल फ़ाइल के अंत में होगा।" उसे सही मोड पहचानने में मदद करें।
file" Help him to identify the correct mode.
सीक() में, मान वर्तमान फ़ाइल स्थिति पर संदर्भ बिंदु निर्धारित करता है।
In seek(), value sets the reference point at the current file position
जब हम किसी फ़ाइल को read मोड में खोलने का प्रयास करते हैं जो मौजूद नहीं है तो निम्नलिखित में से कौन सी त्रुटि वापस आती है
Which of the following error is returned when we try to open a file in read mode which does not exist
जब हम फ़ाइल को एपेंड मोड में खोलते हैं तो फ़ाइल पॉइंटर फ़ाइल के पर होता है।
When we open file in append mode the file pointer is at the of the file.
निम्न में से कौन-सा कथन binary files के लिए सही नहीं है?
Which of the following is not a correct statement for binary files?
Python CSV module में delimiter character के बारे में कौन-सा कथन सही है
In Python’s CSV module, which of the following is true about delimiter characters
CSV files के साथ काम करने के लिए कौन-सा Python module उपयोग होता है
Which Python module is used to work with CSV files
निम्न कोड का आउटपुट क्या होगा
What will be the output of the following code
print("Hello "+"Python" हर फ़ाइल की एक पहचान होती है। इसे क्या कहा जाता है
Every file has its own identity associated with it. This is known as
निम्न में से किस फ़ाइल प्रकार में बड़े डाटा को स्टोर किया जा सकता है
Which of the following file types allows you to store large data files in the computer memory
निम्नलिखित कथन क्या करता है
What does the following statement do
x = open('python.bat', 'rb') यदि हम फ़ाइल खोलते समय फ़ाइल मोड निर्दिष्ट नहीं करते हैं, तो फ़ाइल मोड में खुलेगी
If we do not specify file mode while opening a file, the file will open in mode
Correct Answer: A) read
डेटा फाइल को केवल पढ़ने के लिए किस मोड में खोला जाता है
In which mode is a data file opened for reading only