Science Teacher Question:
Download Job Interview Questions and Answers PDF
Please explain why we use File Handling?
Answer:
The input and output operation that we have performed so far were done through screen and keyboard only.After the termination of program all the entered data is lost because primary memory is volatile . if the data has to be used later ,then it becomes necessary to keep it in permanent storage device. so the c language provide the concept of file through which data can be stored on the disk or secondary storage device.The stored data can be read whenever required.
Types of File Handling in C:
The file handling in C can be categorized in two types-
High level (Standard files or stream oriented files)- High level file handling is managed by library function. High level file handling is commonly used because it is easier and hide most of the details from the programmer.
Low level (system oriented files)- low level files handling is managed by system call.
Types of File Handling in C:
The file handling in C can be categorized in two types-
High level (Standard files or stream oriented files)- High level file handling is managed by library function. High level file handling is commonly used because it is easier and hide most of the details from the programmer.
Low level (system oriented files)- low level files handling is managed by system call.
Download Science Teacher Interview Questions And Answers
PDF
Previous Question | Next Question |
Please explain how will you prepare students for standardized assessments? | Do you know what is the difference between a sequential file and a random file? |