Question
a.
no difference
b.
in r+ the pointer is initially placed at the beginning of the file and the pointer is at the end for w+
c.
in w+ the pointer is initially placed at the beginning of the file and the pointer is at the end for r+
d.
depends on the operating system
Posted under Python
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What is the difference between r+ and w+ modes?
Similar Questions
Discover Related MCQs
Q. How do you get the name of a file from a file object (fp)?
View solution
Q. Which of the following is not a valid attribute of a file object (fp)?
View solution
Q. How do you close a file object (fp)?
View solution
Q. How do you get the current position within the file?
View solution
Q. How do you rename a file?
View solution
Q. How do you delete a file?
View solution
Q. How do you change the file position to an offset value from the start?
View solution
Q. What happens if no arguments are passed to the seek function?
View solution
Q. Which of the following statements are true ?
View solution
Q. Which of the following special characters represents a comment (that is, the contents of the parenthesis are simply ignores)?
View solution
Q. Which of the codes shown below results in a match?
View solution
Q. In the functions re.search.start(group) and re.search.end(group), if the argument groups not specified, it defaults to __________
View solution
Q. Which of the following functions does not accept any argument?
View solution
Q. Which of the following lines of code will not show a match?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Python? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!