Module 2:File Handling Flashcards

1
Q

In file handling, the key function for working files in Python is the ______ function.

A

open ()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

File handling has several function for ______ , ______ , ______ and ______ files

A

creating
reading
updating
deleting

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Syntax:

File object= open(“filename”,”mod”)

______ : attribute of a file object tells you which mode a file was opened in.

A

mode

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Syntax:

File object= open(“filename”,”mod”)

______ : gives name of the file that the file object has opened. And you have to specify the exact location of your file.

A

filename

How well did you know this?
1
Not at all
2
3
4
5
Perfectly