ExamLookup
Menu mobile
Home
Current Affairs
General Knowledge
Computer
Python
HTML
MCQ PYTHON - FILE PROCESSING IN PYTHON MCQ Questions
English
Hindi
Question No. -
41
Report Bug
Which of the following functions is used to open a file in Python?
पायथन में फ़ाइल खोलने के लिए निम्नलिखित में से किस फ़ंक्शन का उपयोग किया जाता है?
पायथन में फ़ाइल खोलने के लिए निम्नलिखित में से किस फ़ंक्शन का उपयोग किया जाता है?
A.
open_file()
open_file()
B.
file_open()
file_open()
C.
open()
open()
D.
read_file()
read_file()
Question No. -
42
Report Bug
How can you close a file in Python after processing?
प्रसंस्करण के बाद आप पायथन में किसी फ़ाइल को कैसे बंद कर सकते हैं?
प्रसंस्करण के बाद आप पायथन में किसी फ़ाइल को कैसे बंद कर सकते हैं?
A.
close_file()
close_file()
B.
file_close()
file_close()
C.
close()
close()
D.
end_file()
end_file()
Question No. -
43
Report Bug
What does the 'r' mode signify when opening a file using open() in Python?
पायथन में ओपन() का उपयोग करके फ़ाइल खोलते समय 'r' मोड क्या दर्शाता है?
पायथन में ओपन() का उपयोग करके फ़ाइल खोलते समय 'r' मोड क्या दर्शाता है?
A.
Read mode
Read mode
B.
Write mode
Write mode
C.
Append mode
Append mode
D.
Binary mode
Binary mode
Question No. -
44
Report Bug
Which method is used to read the entire content of a file as a string in Python?
पायथन में फ़ाइल के पूरे डाटा को स्ट्रिंग के रूप में पढ़ने के लिए किस फंक्शन का उपयोग किया जाता है?
पायथन में फ़ाइल के पूरे डाटा को स्ट्रिंग के रूप में पढ़ने के लिए किस फंक्शन का उपयोग किया जाता है?
A.
read()
read()
B.
readline()
readline()
C.
readlines()
readlines()
D.
load()
load()
Question No. -
45
Report Bug
How can you write data to a file in Python?
आप पायथन में किसी फ़ाइल में डेटा कैसे लिख सकते हैं?
आप पायथन में किसी फ़ाइल में डेटा कैसे लिख सकते हैं?
A.
write()
write()
B.
append()
append()
C.
add()
add()
D.
insert()
insert()
Question No. -
46
Report Bug
Which of the following statements is used to check if a file exists in Python?
निम्नलिखित में से किस फंक्शन का उपयोग यह जांचने के लिए किया जाता है कि कोई फ़ाइल पायथन में मौजूद है या नहीं?
निम्नलिखित में से किस फंक्शन का उपयोग यह जांचने के लिए किया जाता है कि कोई फ़ाइल पायथन में मौजूद है या नहीं?
A.
file_exists()
file_exists()
B.
exists_file()
exists_file()
C.
os.path.exists()
os.path.exists()
D.
check_file()
check_file()
Question No. -
47
Report Bug
Which of the following is the correct way to write multiple lines to a file in Python?
पायथन में किसी फ़ाइल में एक से अधिक पंक्तियाँ लिखने का सही तरीका निम्नलिखित में से कौन सा है?
पायथन में किसी फ़ाइल में एक से अधिक पंक्तियाँ लिखने का सही तरीका निम्नलिखित में से कौन सा है?
A.
Use multiple write() statements.
Use multiple write() statements.
B.
Use writelines() method.
Use writelines() method.
C.
Use writeLine() method.
Use writeLine() method.
D.
Use append() method.
Use append() method.
Question No. -
48
Report Bug
Which module in Python provides functions for file and directory manipulation?
पायथन में कौन सा मॉड्यूल फ़ाइल और फोल्डर में प्रोसेस के लिए फ़ंक्शन प्रदान करता है?
पायथन में कौन सा मॉड्यूल फ़ाइल और फोल्डर में प्रोसेस के लिए फ़ंक्शन प्रदान करता है?
A.
os
os
B.
fileutils
fileutils
C.
filesystem
filesystem
D.
io
io
Question No. -
49
Report Bug
What is full form of CSV?
सीएसवी का फुल फॉर्म क्या है?
सीएसवी का फुल फॉर्म क्या है?
A.
Comma Space Value
Comma Space Value
B.
Comma Separated Value
Comma Separated Value
C.
Common spaced Value
Common spaced Value
D.
Compact Structure View
Compact Structure View
Question No. -
50
Report Bug
What is the Full form of EOL?
EOL का फुल फॉर्म क्या है?
EOL का फुल फॉर्म क्या है?
A.
End of List
End of List
B.
End of Line
End of Line
C.
End of Loop
End of Loop
D.
End of Language
End of Language
Explanation
In Python, "EOL" typically stands for "End of Line." It refers to the character or sequence of characters that denotes the end of a line in a text file or a string.
1
2
3
4
5
6
7
CCC Online Test 2021
CCC Practice Test Hindi
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
O Level NIELIT Study material and Quiz
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Exam Quiz
Website development Company in Allahabad