Fichas
File handling and exceptions
Fichas del 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
Información
- Descripción
- A level (Unit1) Computing Fichas sobre File handling and exceptions, creado por Thomas Barker el 23/01/2018.
- Creado por
- Thomas Barker
- Visitas
- 0
- Valoración
Más sobre Robust Programming and Testing