Python File Handling Quiz-2
Sign in to Google to save your progress. Learn more
Email *
Another name of file object is_______ *
1 point
In python, default EOL character is *
1 point
Which method is used to break the link of file object and the file on the disk. *
1 point
To read the remaining lines of the file from a file object F, we use *
1 point
Name the module required for Text Files *
1 point
The readlines() method returns___________ *
1 point
Which function is used to force the contents of a buffer onto a storage device? *
1 point
What error is returned by following statement, if file “try.txt” does not exist?                                                            f = open(“try.txt”) *
1 point
Which types of files stores information in the form of a stream of ASCII or Unicode Characters *
1 point
To open a file Myfile.txt for appending , we can use____ *
1 point
In text file each line is terminated by a special character called  ______________ *
1 point
What is the purpose of ‘r’ as prefix in the given statement?                                                                                                f = open(r “d:\color\flower.txt”) *
1 point
Which statement is used to retrieve the current position within file? *
1 point
If we do not specify file mode while opening a file, the file will open in mode *
1 point
To open a file Myfile.txt ,which is stored at d:\Myfolder, for WRITING , we can use *
1 point
Submit
Clear form
This content is neither created nor endorsed by Google. Report Abuse - Terms of Service - Privacy Policy