
File Handling in C Programming Quiz

Quiz
•
Computers
•
University
•
Medium
Satheesh D
Used 2+ times
FREE Resource
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()
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
PRA UAS - Dasar Dasar Pemrograman 2023

Quiz
•
University
20 questions
Digital Forensics

Quiz
•
University
20 questions
Arduino

Quiz
•
University
20 questions
Cyber EOP - Rights Permissions By Mr. B

Quiz
•
12th Grade - University
18 questions
CSE 102 Exam 3 Practice

Quiz
•
University
13 questions
File Handling C++

Quiz
•
University
20 questions
Python Prowess

Quiz
•
University
10 questions
Platform Technology - Prelim Quiz

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade