
Files in C
Quiz
•
Computers
•
University
•
Medium
Manoj R
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is file handling in C?
File handling in C is the process of working with files to perform input/output operations.
File handling in C is the process of baking cookies
File handling in C is the process of skydiving
File handling in C is the process of gardening
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you open a file in C?
fopen()
create()
read()
open()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function is used to close a file in C?
fdelete()
fopen()
fclose()
fclose(
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you read from a file in C?
fopen(), fwrite(), fclose()
open(), read(), close()
fopen(), read(), fclose()
fopen(), fgets() or fread()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the function to write to a file in C?
fwrite()
fput()
fopen()
fscan()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between 'r' and 'w' modes when opening a file in C?
The 'r' mode is for reading files, and the 'w' mode is for appending files.
The 'r' mode is for reading files, and the 'w' mode is for writing files.
The 'r' mode is for writing files, and the 'w' mode is for reading files.
The 'r' mode is for reading and writing files, and the 'w' mode is for reading files.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you check if a file has been successfully opened in C?
if (file_pointer == -1) { // File opened successfully }
if (file_pointer != NULL) { // File opened successfully }
if (file_pointer == NULL) { // File opened successfully }
if (file_pointer == 0) { // File opened successfully }
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
PT. ALFA CIPTA TEKNOLOGI VIRTUAL (ACTIV) (Soal ZooM)
Quiz
•
University
8 questions
C++ pointers
Quiz
•
University
10 questions
Stack & Queue
Quiz
•
University
10 questions
Adobe Flash
Quiz
•
University
15 questions
C programming
Quiz
•
University
13 questions
Cisco 1, Module 10
Quiz
•
University
14 questions
MATLAB Files and File Management
Quiz
•
University
15 questions
DS MODULE 3 LINKED LIST
Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Computers
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms
Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University
20 questions
La Hora
Quiz
•
9th Grade - University
7 questions
Cell Transport
Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University