Menu mobile
Home
PYTHON
Python Tutorial
Program Example
Interview Questions
JAVA
Java Tutorial
Program Example
Interview Questions
C Language
C Tutorial
Program Example
Interview Questions
Web Design
HTML
CSS
Java Script
PHP
Assignment
MS Office
HTML
CSS
Java Script
JQuery
AngularJs
QUIZ ON : PYTHON - FILE PROCESSING IN PYTHON
FILE PROCESSING IN PYTHON
00:00:00
English
Hindi
Question No# :
01
Which is the function to read the remaining lines of the file from a file object infile?
फ़ाइल ऑब्जेक्ट infile से फ़ाइल की शेष पंक्तियों को पढ़ने के लिए कौन सा फंक्शन है?
A.
infile.read(2)
infile.read(2)
B.
infile.read()
infile.read()
C.
infile.readlines()
infile.readlines()
D.
infile.readline()
infile.readline()
Question No# :
02
Which of the function take takes two arguments?
कौन सा फंक्शन को दो आर्गूमेंट की जरूरत पड़ेगी
A.
dump()
dump()
B.
load()
load()
C.
Both A and B
Both A and B
D.
None of the above
None of the above
Question No# :
03
Which is mean by 'a' mode when working with text file.
टेक्स्ट फ़ाइल के साथ काम करते समय a मोड से इसका मतलब है।
A.
Append File
Append File
B.
Write File
Write File
C.
Read File
Read File
D.
Read and Write both
Read and Write both
Question No# :
04
to use load() function for working with binary file in python which module is require
पायथन में बाइनरी फ़ाइल के साथ काम करने के लिए load() फ़ंक्शन का उपयोग करने के लिए किस मॉड्यूल की आवश्यकता है
A.
pickle
pickle
B.
binary
binary
C.
unpickle
unpickle
D.
fstream
fstream
Question No# :
05
Which function of pickle module is used to write data on binary file
बाइनरी फ़ाइल पर डेटा लिखने के लिए अचार मॉड्यूल का कौन सा फ़ंक्शन प्रयोग किया जाता है
A.
dump()
dump()
B.
write()
write()
C.
writeBinary()
writeBinary()
D.
load()
load()
Question No# :
06
What is mean by 'rb' mode when working with binary file in python
What is mean by 'rb' mode when working with binary file in python
A.
read binary
read binary
B.
write binary
write binary
C.
append binary
append binary
D.
read write
read write
Question No# :
07
If we open a file in write mode and file does not exists, which of the error will generate?
यदि हम एक फाइल को राइट मोड में खोलते हैं और फाइल मौजूद नहीं है, तो कौन सी त्रुटि उत्पन्न होगी?
A.
File Found Error
File Found Error
B.
File Not Exist Error
File Not Exist Error
C.
File Not Found Error
File Not Found Error
D.
None of these
None of these
Question No# :
08
Which of the following is an invalid mode?
निम्न में से कौन सा अमान्य मोड है?
A.
a
a
B.
ar+
ar+
C.
r+
r+
D.
w
w
Question No# :
09
Which of the following is not a correct mode to open a file ?
फ़ाइल खोलने के लिए निम्न में से कौन सा सही मोड नहीं है?
A.
ab
ab
B.
rw
rw
C.
a+
a+
D.
r+
r+
Question No# :
10
Which function returns the strings?
कौन सा फंक्शन स्ट्रिंग्स लौटाता है?
A.
readlines()
readlines()
B.
read()
read()
C.
Both of the above
Both of the above
D.
None of the above
None of the above
Previous
1
Next
CCC Online Test 2021
CCC Practice Test Hindi
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
Best Java Training Institute in Prayagraj (Allahabad)
Best Python Training Institute in Prayagraj (Allahabad)
O Level Online Test in Hindi
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Naukari Notification
Best Website and Software Company in Allahabad
Sarkari Exam Quiz