Files Flashcards

1
Q

File

A

Sequence of bytes stored on a secondary storage device

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

Where are they stored

A

Folders or directories

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

Text files

A

Made up if strings each of which is terminated by a newline

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

Binary files

A

Store information in application-specific formats e.g. PDF, JPEG

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

Syntax for opening files

A

= open (,)

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

Encoding

A

Specifically useful one for files that contain non-ascii characters(encoding=’utf-8’)

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

Character encoding capable of encoding Unicode characters?

A

utf-8

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

exceptions

A

Runtime error that can be checked for and dealt with in a program

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