
File Handling in C Programming Quiz
Authored by Satheesh D
Computers
University
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a stream associated with in C programming?
Database
Memory
File
Network
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which header file is required for using file handling functions in C?
string.h
math.h
stdlib.h
stdio.h
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to open a file in C?
fread()
fwrite()
fclose()
fopen()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'r' mode signify when opening a file using fopen()?
Create a text file for writing
Open a text file for reading
Create a binary file for writing
Open a binary file for reading
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to explicitly close an opened file in C?
fread()
fopen()
fwrite()
fclose()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of fprintf() and fscanf() functions in C?
Read and write characters
Read and write files with additional file pointer argument
Read and write integers
Read and write files
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is equivalent to getchar() but requires a file pointer as an argument?
getc()
fwrite()
putc()
fread()
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?