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.DATKeep Practicing
Edvaya Target
Board & Competitive Exams Made Easy
Edvaya Target is built for students preparing for JEE (Main & Advanced), NEET UG, and Board Exams (CBSE, ISC & State Boards) — using a practice-first approach that actually works.
Current Question
Community Stats
Track Your Progress
Sign up to save your practice progress, add favorites, and get personalized insights.

