[go-test-head]

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, Sargodha, Sahiwal, DG Khan, Bahawalpur, Rawalpindi, Multan, Faisalabad) 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. Function fgets() takes __________ parameters.
1.
2.
3.
4.

Question 1 of 20

Question 2 of 20

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

Question 2 of 20

Question 3 of 20

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

Question 3 of 20

Question 4 of 20

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

Question 4 of 20

Question 5 of 20

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

Question 5 of 20

Question 6 of 20

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

Question 6 of 20

Question 7 of 20

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

Question 7 of 20

Question 8 of 20

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

Question 8 of 20

Question 9 of 20

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

Question 9 of 20

Question 10 of 20

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

1.
2.
3.
4.

Question 10 of 20

Question 11 of 20

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

Question 11 of 20

Question 12 of 20

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

Question 12 of 20

Question 13 of 20

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

Question 13 of 20

Question 14 of 20

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

Question 14 of 20

Question 15 of 20

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

Question 15 of 20

Question 16 of 20

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

Question 16 of 20

Question 17 of 20

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

1.
2.
3.
4.

Question 17 of 20

Question 18 of 20

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

Question 18 of 20

Question 19 of 20

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

Question 19 of 20

Question 20 of 20

20. A file opened with fopen() will thereafter be referred by its ____________.
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 Student Learning Outcomes (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%): The objective section is the easiest way to lose or gain marks. 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. A double-filled bubble gets zero marks.
  • Pairing Scheme: Check the latest pairing scheme on GoTest to know which chapters have the most weightage in the objective section.

[go-test-bottom]
You Can Learn and Gain more Knowledge through our Online Quiz and Testing system Just Search your desired Preparation subject at Gotest.
[go-related-test]

Leave a Reply

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

Back to top button