Navigation Menu
Home Blog Latest Notices
100% Free

ECAT - Practice Test - Computer Science - File Handling in C - Quiz 1

Practice 10 high yield MCQs on Computer Science from Chapter File Handling in C for Practice Test. After submission, get instant results with correct answers and detailed explanations. This is Quiz 1 of the series.

1. Which header file is required for file handling in C?



2. The function used to open a file in C is:



3. Which mode is used to open a file for reading?



4. Which mode is used to open a file for writing (creates new or overwrites)?



5. Which mode is used to open a file for appending?



6. The function to close an opened file is:



7. Which function reads a character from a file?



8. Which function writes a character to a file?



9. Which function reads a line from a file?



10. Which function writes a string to a file?



← Back to Quiz Sets
Instructions: Select one answer per question. After submitting, you will see your score, correct answers, and explanations.

Medical Colleges in Pakistan

Explore medical institutions city‑wise – public & private.

Browse All Medical Colleges →