Flashcards
File handling and exceptions
Flashcards do conjunto (4)
- 1What is a text file?Text file: a file that contains human readable characters
- 2What is a binary file?Binary file: stores data as sequences of 1s and 0s.
- 3What is a record and What is a field.Record: one line of a text file
Field: an item of data - 4Why do we use exception handling?To catch errors to prevent the program from crashing.
Common errors include:
-trying to read a non-existent file
-trying to convert a non numerical string entered by user into an integer or real number
-trying to perform calculations with non-numerical value
-division by zero
Informações
- Descrição
- A level Computing (Unit1) FlashCards sobre File handling and exceptions, criado por Thomas Barker em 23-01-2018.
- Criado por
- Thomas Barker
- Visualizações
- 0
- Avaliação
Mais sobre Robust Programming and Testing