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

Start your preparation for Punjab 12th Class Computer Chapter 7 File Management Mcqs Test Online. This online test contains 20 MCQs and you have 20 Minutes to complete it. The total marks for this test are 40. This test is valid for students of All Punjab Boards (Lahore, Gujranwala, Multan, etc.) following the PCTB Syllabus. Read the questions carefully and select the correct option below to see your result.

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

 

Question 1 of 20

Computer Science

1. What does the statement “fprintf(fptr, “%s %d %f”, name, weight, height); “will do?
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. Which statement defines the file structure?
1.
2.
3.
4.

Question 3 of 20

Question 4 of 20

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

Question 4 of 20

Question 5 of 20

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

Question 5 of 20

Question 6 of 20

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

1.
2.
3.
4.

Question 6 of 20

Question 7 of 20

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

Question 7 of 20

Question 8 of 20

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

Question 8 of 20

Question 9 of 20

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

Question 9 of 20

Question 10 of 20

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

Question 10 of 20

Question 11 of 20

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

Question 11 of 20

Question 12 of 20

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

Question 12 of 20

Question 13 of 20

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

Question 13 of 20

Question 14 of 20

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

Question 14 of 20

Question 15 of 20

15. To write a character to the file we use function __________.
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. ___________ message tells that the file is not opened.
1.
2.
3.
4.

Question 17 of 20

Question 18 of 20

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

1.
2.
3.
4.

Question 18 of 20

Question 19 of 20

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

Question 19 of 20

Question 20 of 20

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

Question 20 of 20


 

Guide for Punjab Board Students

Students of BISE Lahore, Gujranwala, Multan, and other Punjab boards must follow the SLO based pattern.

Top Scoring Tips for Punjab:

  • Textbook Reading: The paper is 100% derived from PCTB books. Do not rely only on keybooks.
  • Objective Paper (20%): Practice these online MCQs repeatedly as they are taken from 5-Year Past Papers.
  • Bubble Sheet: Ensure you know how to fill the OMR sheet correctly.

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