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

Total Question
20 Questions
Total Marks
40 Marks
Total Time
20 Minuts
Test Help For ::

12th Computer Class Test
Entry Test MCQs
Computer Admission Test
Competitive Exams
All Punjab Boards Annual Exams




Test Name



Ch. 7 # File Management

Subject



Computer (12th Class)

Test Type



MCQs


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. To write strings to a file, we use the function ___________.

1.
2.
3.
4.

Question 1 of 20

Question 2 of 20

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

Question 2 of 20

Question 3 of 20

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

Question 3 of 20

Question 4 of 20

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

Question 4 of 20

Question 5 of 20

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

Question 5 of 20

Question 6 of 20

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

Question 6 of 20

Question 7 of 20

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

Question 7 of 20

Question 8 of 20

8. Which statement defines the file structure?
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. A _________ is a collection of bytes that is given a name.
1.
2.
3.
4.

Question 11 of 20

Question 12 of 20

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

Question 12 of 20

Question 13 of 20

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

Question 13 of 20

Question 14 of 20

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

Question 14 of 20

Question 15 of 20

15. What does the statement “fprintf(fptr, “%s %d %f”, name, weight, height); “will do?
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. Function fgets() takes __________ parameters.
1.
2.
3.
4.

Question 17 of 20

Question 18 of 20

18. The function used for formatted output and input.
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. File manipulation functions in C are available in which header file?
1.
2.
3.
4.

Question 20 of 20


 

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

Other Related test

Leave a Reply

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

Back to top button
error: