Chapter 8: Python File I/O

 

Results

Previous
Next

#1. _____ is a named location on disk to store related information.

Previous
Next

#2. _______ is used to permanently store data in a non-volatile memory.

Previous
Next

#3. _____ is a volatile which loses its data when computer is turned off, we use files for future use of the data.

Previous
Next

#4. Python has a built-in function ______ to open a file.

Previous
Next

#5. Open a file for reading.

Previous
Next

#6. Open a file for writing.

Previous
Next

#7. Open a file for exclusive creation.

Previous
Next

#8. Open for appending at the end of the file without truncating it.

Previous
Next

#9. Open in text mode.

Previous
Next

#10. Open in binary mode.

Previous
Next

#11. Open a file for updating.

Previous
Next

#12. Close an open file.

Previous
Next

#13. Separate the underlying binary buffer from the TextIOBase and return it.

Previous
Next

#14. Return an integer number of the file.

Previous
Next

#15. Flush the write buffer of the file stream.

Previous
Next

#16. The file stream is interactive.

Previous
Next

#17. Reads characters from the file.

Previous
Next

#18. File stream can be read from.

Previous
Next

#19. Read and return one line from the file.

Previous
Next

#20. Change the file position to offset bytes in reference to from start to end.

Previous
Next

#21. File stream supports random access.

Previous
Next

#22. Returns the current file location.

Previous
Next

#23. Resize the file stream to size bytes.

Previous
Next

#24. File stream can be written to.

Previous
Next

#25. Write string to the file and return the number of characters written.

Previous
Finish