
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
Similar Resources on Wayground
10 questions
Tes Awal AlPro Modul 6

Quiz
•
University
15 questions
QUIZ-5: MYSQL & File Handling

Quiz
•
University
10 questions
Programming in C

Quiz
•
University
12 questions
C++ Faili (1)

Quiz
•
University
15 questions
File Handling in C Programming Quiz

Quiz
•
University
13 questions
Revision 2 MCA

Quiz
•
University
10 questions
Notes on Blender - Section 10

Quiz
•
6th Grade - University
7 questions
Backup, Restore, and Recovery

Quiz
•
9th Grade - University
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
2 questions
Pronouncing Names Correctly

Quiz
•
University
12 questions
Civil War

Quiz
•
8th Grade - University
18 questions
Parent Functions

Quiz
•
9th Grade - University
21 questions
Mapa países hispanohablantes

Quiz
•
1st Grade - University
19 questions
Primary v. Secondary Sources

Quiz
•
6th Grade - University
25 questions
Identifying Parts of Speech

Quiz
•
8th Grade - University
20 questions
Disney Trivia

Quiz
•
University