page-banner
Python M3-R5.1 MCQs SET-17
Q6.
readlines() फंक्शन क्या रिटर्न करेगा

readlines() will return
A. list of characters
B. list of strings
C. list of lines
D. list of tuples
View Answer
Q7.
निम्न में से कौन सा फ़ाइल-मोड फ़ाइल डेटा को बनाए रखता है और नए डेटा को जोड़ता है।

Which of the following file-modes does retains file data and append new data.
A. ’a+’
B. ’a’
C. ’w+’
D. ’r+’
View Answer
Q8.
निम्न में से किस फंक्शन का प्रयोग फाइल में LIST OF STRINGS लिखने के लिए किया जाता है?

Which of the following function is used to write LIST OF STRINGS in a file?
A. write()
B. writeline()
C. writelines()
D. write(all)
View Answer
Q9.
एक फ़ाइल में एक सूची लिखने के लिए कमाण्ड।

Command to write a list in a file.
A. write()
B. writeline()
C. writelines()
D. writepara()
View Answer
Q10.
फ़ाइल से कुछ बाइट पढ़ता है और इसे एक स्ट्रिंग के रूप में लौटाता है।

Reads some bytes from the file and returns it as a string.
A. read()
B. readline()
C. readpara()
D. readlines()
View Answer

Create Account