ECAT Computer File Handling in “C” Test Online

ECAT Computer Science File Handling in “C” Test

ECAT Computer Science Chapter 24 File Handling in “C” Online Test

Total Questions: 50
Time Allowed: 25 Minutes
Total Marks: 50
How to Attempt Test: Please choose the right Option in MCQ-type question.
Test Helpful For: ECAT Entry Test
Computer Online Test
Interview Questions about Computer
All Universities Entrance Test
Recruitments Tests

ECAT File Handling in “C” Test Online MCQs

 0%

Page 1 of 2

Uncategorized

1. Which of the following can be used to store structured data in files?

2. What does "a+" mode do?

3. What will fopen() return if it fails to open a file?

4. Which function is used to write a string to a file?

5. Which of the following functions is used to flush the output buffer?

6. Which function moves the file pointer to a specific location?

7. Which function returns the current position of the file pointer?

8. Which function is used to write a character to a file?

9. Which function is used to close a file in C?

10. Which of the following functions writes formatted data to a binary file?

11. Which of the following operations is not possible in "r" mode?

12. What is the return type of fopen()?

13. Which function is used to check the end-of-file condition?

14. What happens when fclose() is not called?

15. What happens if fopen() is called with "r" mode on a non-existent file?

16. Which of the following is correct for writing formatted data to a file?

17. What will fread() return if it fails?

18. Which function is used to detect file errors?

19. Which function moves the file pointer back to the beginning of a file?

20. Which header file is required for file operations in C?

21. What is the return value of fclose() on success?

22. Which mode is used to append data to a file?

23. Which of the following is a correct way to create and write to a binary file?

24. Which of the following statements is true about file handling in C?

25. Which function is used to open a file in C?


 

You Can Learn and Gain more Knowledge through our Online Quiz and Testing system Just Search your desired Preparation subject at Gotest.

Mustansar Khan

Hey Exam Warriors! I'm Mustansar Khan, your ally in conquering tests. Uncover strategies, real-time experiences, and expert advice to turn your study sessions into victories. Let's gear up for success!

Your Related

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button
error: