Punjab 12th Class Computer Chapter 7 File Management Mcqs Test Online
Questions 20
Total Marks 40
Time 20 Mins

Punjab 12th Class Computer Chapter 7 File Management Mcqs Test Online

Punjab 12th Class Computer Chapter 7 File Management Mcqs Test Online

 

Question 1 of 20

Computer Science

1. fscanf() function used to read the data is very similar to the function ____________.
1.
2.
3.
4.

Question 1 of 20

Question 2 of 20

2. A _________ is a collection of bytes that is given a name.
1.
2.
3.
4.

Question 2 of 20

Question 3 of 20

3. When the operating system realize that the last character in a file has been sent it transmits the __________.
1.
2.
3.
4.

Question 3 of 20

Question 4 of 20

4. A file opened with fopen() will thereafter be referred by its ____________.
1.
2.
3.
4.

Question 4 of 20

Question 5 of 20

5. What does the statement “fprintf(fptr, “%s %d %f”, name, weight, height); “will do?
1.
2.
3.
4.

Question 5 of 20

Question 6 of 20

6. What is the usage of putc() function?
1.
2.
3.
4.

Question 6 of 20

Question 7 of 20

7. We use the function ________ to read data from a file.

1.
2.
3.
4.

Question 7 of 20

Question 8 of 20

8. NULL is equivalent to a value of __________.
1.
2.
3.
4.

Question 8 of 20

Question 9 of 20

9. Function fgets() takes __________ parameters.
1.
2.
3.
4.

Question 9 of 20

Question 10 of 20

10. ___________ message tells that the file is not opened.
1.
2.
3.
4.

Question 10 of 20

Question 11 of 20

11. What statement is used to add a newline character to the end of the line?
1.
2.
3.
4.

Question 11 of 20

Question 12 of 20

12. The function used for formatted output and input.
1.
2.
3.
4.

Question 12 of 20

Question 13 of 20

13. To write a character to the file we use function __________.
1.
2.
3.
4.

Question 13 of 20

Question 14 of 20

14. To write strings to a file, we use the function ___________.

1.
2.
3.
4.

Question 14 of 20

Question 15 of 20

15. When we have finished writing to the file, we use the statement __________.
1.
2.
3.
4.

Question 15 of 20

Question 16 of 20

16. In the C language input/output operations on disks are performed using entities called _________.
1.
2.
3.
4.

Question 16 of 20

Question 17 of 20

17. For reading strings from a file we use the function ________.
1.
2.
3.
4.

Question 17 of 20

Question 18 of 20

18. Which statement open the file in both reading and writing mode?
1.
2.
3.
4.

Question 18 of 20

Question 19 of 20

19. Which statement defines the file structure?
1.
2.
3.
4.

Question 19 of 20

Question 20 of 20

20. File manipulation functions in C are available in which header file?
1.
2.
3.
4.

Question 20 of 20


 

Prepare Subjective:
Read Short Questions
Test By Class
Test By Subject

Leave a Reply

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

Back to top button
error: