🚀 Hurry! Offer Ends In
00 Days
00 Hours
00 Mins
00 Secs
Enroll Now
X

File Processing

Question: 1 Report Error

seek() method file object की current position को return करता है ?

seek() method returns the current position of the file object?

A)
B)
C)
D)

Question: 2 Report Error

बाइनरी मोड में डेटा लिखने के लिए किस फ़ंक्शन का उपयोग किया जाता है?

Which function is used to write data in binary mode ?

A)
B)
C)
D)

Question: 3 Report Error

शिव पायथॉन प्रोग्राम का उपयोग करके अपने ग्राहक का डेटा संग्रहीत करना चाहता है। डेटा संग्रहीत करने का सर्वोत्तम तरीका सुझाएं?

Shiv wants to store the data of his customer using the python program. Suggest the best way to store the data?

A)
B)
C)
D)

Question: 4 Report Error

अचार बनाने का तात्पर्य है

Pickling refers to

A)
B)
C)
D)

Question: 5 Report Error

CSV फ़ाइलों तक पहुँचा जा सकता है

The CSV files can be accessed by

A)
B)
C)
D)

Question: 6 Report Error

निम्नलिखित में से कौन सा कथन बाइनरी फ़ाइलों के लिए सही है?

Which of the following statement is correct for binary files?

A)
B)
C)
D)

Question: 7 Report Error

निम्नलिखित में से फ़ाइलों का कौन सा प्रारूप पायथन प्रोग्राम के माध्यम से प्रोग्रामेटिक रूप से बनाया जा सकता है?

Which of the following format of files can be created programmatically through python program?

A)
B)
C)
D)

Question: 8 Report Error

राम ने एक निश्चित मोड में एक फाइल खोली। फाइल खोलने के बाद वह मोड भूल गया। उस मोड के बारे में दिलचस्प तथ्य हैं "यदि फ़ाइल मौजूद नहीं है, तो एक नई फ़ाइल बनाई जाएगी" और "उस मोड में फ़ाइल खोलने के बाद फ़ाइल का हैंडल फ़ाइल के अंत में होगा" उसे सही की पहचान करने में मदद करें तरीका।

Ram opened a file in a certain mode. After opening the file, he forgot the mode. The interesting facts about that mode are " If the file doesn't exist, then a new file will be created" and "After opening file in that mode the file handle will be at the end of the file" Help him to identify the correct mode.

A)
B)
C)
D)

Question: 9 Report Error

एक फ़ाइल c:\scores.txt को पढ़ने के लिए खोलने के लिए, हम _____________ का उपयोग करते हैं

To open a file c:\scores.txt for reading, we use _____________

A)
B)
C)
D)

Question: 10 Report Error

फाइल ऑब्जेक्ट इनफाइल से स्ट्रिंग के रूप में फाइल की पूरी बची हुई सामग्री को पढ़ने के लिए हम __________ का प्रयोग करते हैं।

To read the entire remaining contents of the file as a string from a file object infile, we use ____________

A)
B)
C)
D)

Question: 11 Report Error

रीडलाइन्स () मेथड रिटर्न करती है __________

The readlines() method returns ____________

A)
B)
C)
D)

Question: 12 Report Error

ओपन () फ़ंक्शन एक फ़ाइल ऑब्जेक्ट लौटाता है जिसे ______________ कहा जाता है

open( ) function returns a file object called ______________

A)
B)
C)
D)

Question: 13 Report Error

पायथन मॉड्यूल __________ फ़ाइल एक्सटेंशन वाली एक फ़ाइल है जिसमें वैध पायथन कोड होता है।

A Python module is a file with the __________ file extension that contains valid Python code.

A)
B)
C)
D)

Question: 14 Report Error

sys.stdout.write(“ABC”) जो मॉड्यूल है

sys.stdout.write(“ABC”) who is module

A)
B)
C)
D)

Question: 15 Report Error

इनमें से कौन सी परिभाषा मॉड्यूल का सही वर्णन करती है?

Which of these definitions correctly describes a module ?

A)
B)
C)
D)

Question: 16 Report Error

पैकेज से सभी मॉड्यूल आयात करने के लिए कौन सा कथन सही है?

Which statement is correct to import all modules from the package ?

A)
B)
C)
D)

Question: 17 Report Error

पायथन के लिए निम्नलिखित में से कौन सा पर्यावरण चर पायथन दुभाषिया को बताता है कि प्रोग्राम में आयातित मॉड्यूल फ़ाइलों का पता कहाँ लगाना है?

Which of the following environment variable for Python tells the Python interpreter where to locate the module files imported into a program ?

A)
B)
C)
D)

Question: 18 Report Error

निम्नलिखित फ़ाइल प्रबंधन कार्यों को उचित क्रम में व्यवस्थित करें:

Arrange the following file handling operations in proper order:

A) Close the file
B) Perform operations on file
C) Opening the file
A)
B)
C)
D)

Question: 19 Report Error

रीडलाइन() विधि क्या लौटाती है?

What does readlines() method return ?

A)
B)
C)
D)

Question: 20 Report Error

निम्नलिखित में से कौन सा फ़ाइल खोलने का सही तरीका नहीं है?

Which of the following is not a correct mode to open a file?

A)
B)
C)
D)

Question: 21 Report Error

किसी फ़ाइल का नाम बदलने के लिए प्रयुक्त सिंटैक्स:

The syntax used to rename a file :

A)
B)
C)
D)

Question: 22 Report Error

यदि हम किसी फ़ाइल को राइट मोड में खोलते हैं और फ़ाइल मौजूद नहीं है, तो कौन सी त्रुटि उत्पन्न होगी?

If we open a file in write mode and file does not exists, which of the error will generate ?

A)
B)
C)
D)

Question: 23 Report Error

फ़ाइल ऑब्जेक्ट इनफ़ाइल से फ़ाइल की शेष पंक्तियों को पढ़ने का कार्य कौन सा है?

Which is the function to read the remaining lines of the file from a file object infile ?

A)
B)
C)
D)

Question: 24 Report Error

रवि ने ओपन() फ़ंक्शन का उपयोग करके पायथन में एक फ़ाइल खोली लेकिन मोड निर्दिष्ट करना भूल गया। फ़ाइल किस मोड में खुलेगी?

Ravi opened a file in python using open( ) function but forgot to specify the mode. In which mode the file will open ?

A)
B)
C)
D)

Question: 25 Report Error

कौन सा कथन फ़ाइल से एक पंक्ति लौटाएगा (फ़ाइल ऑब्जेक्ट „f‟ है)?

Which statement will return one line from a file (file object is „f?) ?

A)
B)
C)
D)

Question: 26 Report Error

यदि फ़ाइल मौजूद नहीं है तो कौन सा मोड एक नई फ़ाइल बनाता है?

Which mode creates a new file if the file does not exist ?

A)
B)
C)
D)

Question: 27 Report Error

पायथन में कौन सा फ़ंक्शन फ़ाइल खोलता है?

Which function opens file in python ?

A)
B)
C)
D)

Question: 28 Report Error

निम्नलिखित में से कौन सी फाइल किसी टेक्स्ट एडिटर में खोली जा सकती है?

Which of the following file can be opened in any text editor ?

A)
B)
C)
D)

Question: 29 Report Error

फ़ाइल में निम्नलिखित में से कौन सा मूल I/O कनेक्शन है?

Which of the following is the basic I/O connections in file ?

A)
B)
C)
D)

Question: 30 Report Error

seek() का सिंटैक्स है:

The syntax of seek() is:

file_object.seek(offset [, reference_point]) 
What does the reference_point indicate?
A)
B)
C)
D)

Question: 31 Report Error

इनमें से कौन सी फ़ाइल की विशेषता नहीं है?

Which one is not the attribute of a file?

A)
B)
C)
D)

Question: 32 Report Error

कौन सा फ़ंक्शन दो तर्क लेता है?

Which of the function takes two arguments ?

A)
B)
C)
D)

Question: 33 Report Error

f.read(5) एक फ़ाइल (फ़ाइल ऑब्जेक्ट 'f') से __________ पढ़ेगा।

f.read(5) will read __________ from a file (file object ‘f’).

A)
B)
C)
D)

Question: 34 Report Error

निम्नलिखित में से कौन फ़ाइल की संपूर्ण सामग्री (फ़ाइल ऑब्जेक्ट 'f') को पढ़ेगा?

Which of the following will read entire content of file (file object ‘f’) ?

A)
B)
C)
D)

Question: 35 Report Error

निम्नलिखित में से किसमें डेटा स्थायी रूप से संग्रहीत किया जाता है?

In which of the following, data is stored permanently ?

A)
B)
C)
D)

Question: 36 Report Error

__________ फ़ंक्शन फ़ाइल पॉइंटर की वर्तमान स्थिति लौटाता है।

__________ function returns the current position of file pointer.

A)
B)
C)
D)

Question: 37 Report Error

यदि फ़ाइल मौजूद नहीं है तो कौन सा मोड एक नई फ़ाइल बनाता है?

Which mode creates a new file if the file does not exist ?

A)
B)
C)
D)

Question: 38 Report Error

निम्नलिखित कथन में 'f' क्या है?

What is ‘f’ in the following statement ?

f=open(“Data.txt”, “r”)
A)
B)
C)
D)

Question: 39 Report Error

एक _____________ जानकारी को ASCII या यूनिकोड वर्णों की एक धारा के रूप में संग्रहीत करता है अर्थात मानव पठनीय।

A _____________ stores information in the form of a stream of ASCII or unicode characters i.e. human readable.

A)
B)
C)
D)

Question: 40 Report Error

कौन सा कथन फ़ाइल पॉइंटर को shuru स्थिति से 10 बाइट्स aage ले जाएगा?

Which statement will move file pointer 10 bytes forward from begnining position ?

A)
B)
C)
D)

Question: 41 Report Error

कौन सा कथन फ़ाइल से एक पंक्ति लौटाएगा (फ़ाइल ऑब्जेक्ट 'एफ' है)?

Which statement will return one line from a file (file object is ‘f’) ?

A)
B)
C)
D)

Question: 42 Report Error

जब हम किसी फ़ाइल को read मोड में खोलने का प्रयास करते हैं जो मौजूद नहीं है तो निम्नलिखित में से कौन सी त्रुटि वापस आती है?

Which of the following error is returned when we try to open a file in read mode which does not exist ?

A)
B)
C)
D)

Question: 43 Report Error

जब हम फ़ाइल को एपेंड मोड में खोलते हैं तो फ़ाइल पॉइंटर फ़ाइल के _________ पर होता है।

When we open file in append mode the file pointer is at the _________ of the file.

A)
B)
C)
D)

Question: 44 Report Error

यदि हम किसी फ़ाइल को राइट मोड में खोलते हैं और फ़ाइल मौजूद नहीं है, तो कौन सी त्रुटि उत्पन्न होगी?

If we open a file in write mode and file does not exists, which of the error will generate ?

A)
B)
C)
D)

Question: 45 Report Error

सीएसवी का फुल फॉर्म क्या है?

What is full form of CSV ?

A)
B)
C)
D)

Question: 46 Report Error

कथन 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
A)
B)
C)
D)

Question: 47 Report Error

कौन सा कथन फ़ाइल से एक पंक्ति लौटाएगा (फ़ाइल ऑब्जेक्ट „f‟ है)?

Which statement will return one line from a file (file object is „f?) ?

A)
B)
C)
D)

Question: 48 Report Error

निम्नलिखित में से कौन सा फ़ंक्शन दो तर्क लेता है?

Which of the following function takes two arguments ?

A)
B)
C)
D)

Question: 49 Report Error

कौन सा कथन एक फ़ाइल (फ़ाइल ऑब्जेक्ट "f") से 5 अक्षर पढ़ेगा?

Which statement will read 5 characters from a file(file object "f") ?

A)
B)
C)
D)

Question: 50 Report Error

निम्नलिखित में से कौन फ़ाइल की संपूर्ण सामग्री (फ़ाइल ऑब्जेक्ट 'f') को पढ़ेगा?

Which of the following will read entire content of file (file object ‘f’) ?

A)
B)
C)
D)

Latest Updates