Computer Science > Computational Thinking And Programming 2 > Data File Handling
Keshav is the IT Head in a hospital. He needs to manage the records of all the doctors in the hospital. For this, he wants to store the following information of each doctor in a file:
- : An integer to store Doctor ID.
D_ID - : A string to store doctor's name.
D_Name - : A string to store the Department of the doctor. (Surgery, Radiology, etc.)
D_Dept - : An integer to store doctor's experience (in years)
Experience
For example, a doctor's information may be:
[1256, "R. Gupta", "Cardiology", 15]As an applicant for the post of a Programmer, you have to answer the following questions in this context: (I) Write one difference of storing this data in a binary file over a CSV file. (II) Assume that the data is stored in a binary file, named
DOCTORS.DATDOCTORS.DATaddDoctor()DOCTORS.DATCurrent Question
Community Stats
Track Your Progress
Sign up to save your practice progress, add favorites, and get personalized insights.

Edvaya Target
Practice Questions & Mock Tests
Improve your problem-solving skills with our extensive collection of practice questions including PYQs, NCERT Textbooks, NCERT Exemplars and Mock Tests. Get instant feedback and detailed solutions to enhance your preparation.
