File Handling in C Programming Quiz

File Handling in C Programming Quiz

University

15 Qs

quiz-placeholder

Similar activities

File Function Activity

File Function Activity

University

10 Qs

Operating System Quiz

Operating System Quiz

University

20 Qs

6thApril

6thApril

University

10 Qs

Files in C

Files in C

University

10 Qs

linux commands

linux commands

University

20 Qs

Java Quiz#0(Fundamentals)

Java Quiz#0(Fundamentals)

University

10 Qs

Linux File Permission

Linux File Permission

University

20 Qs

Cyber EOP - Rights Permissions By Mr. B

Cyber EOP - Rights Permissions By Mr. B

12th Grade - University

20 Qs

File Handling in C Programming Quiz

File Handling in C Programming Quiz

Assessment

Quiz

Computers

University

Medium

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?