Flashcards
File handling and exceptions
Cards in this deck (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
Information
- Description
- A level Computing (Unit1) Flashcards on File handling and exceptions, created by Thomas Barker on 23/01/2018.
- Created by
- Thomas Barker
- Views
- 0
- Rating
More on Robust Programming and Testing