Q.1.
Which of the following is not a valid mode to open a file?
Q.2.
What is the difference between r+ and w+ modes?
Q.3.
How do you get the name of a file from a file object (fp)?
Q.4.
Which of the following is not a valid attribute of a file object (fp)?
Q.5.
How do you close a file object (fp)?
Q.6.
How do you get the current position within the file?
Q.7.
How do you rename a file?
Q.8.
How do you delete a file?
Q.9.
How do you change the file position to an offset value from the start?
Q.10.
What happens if no arguments are passed to the seek function?