File Input and Output in C

File Input and Output in C

Professional Development

26 Qs

quiz-placeholder

Similar activities

Unix

Unix

University - Professional Development

21 Qs

Advanced - Middle Module Evaluation

Advanced - Middle Module Evaluation

Professional Development

22 Qs

Linux Test Prep 2

Linux Test Prep 2

8th Grade - Professional Development

25 Qs

IT Essentials Ch 12 Review - Mobile, Linux, and MacOS

IT Essentials Ch 12 Review - Mobile, Linux, and MacOS

9th Grade - Professional Development

22 Qs

CIW 10

CIW 10

7th Grade - Professional Development

26 Qs

Knowing Linux CLI commands

Knowing Linux CLI commands

Professional Development

28 Qs

GCE LEVEL 1 GOOGLE DRIVE

GCE LEVEL 1 GOOGLE DRIVE

Professional Development

27 Qs

Linux_1-25

Linux_1-25

Professional Development

25 Qs

File Input and Output in C

File Input and Output in C

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Gorantla Gopal

FREE Resource

26 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a file in C programming?

A pointer to memory

A collection of characters stored on disk

A data type

A library function

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true about text files?

They store data in binary form

They are readable by text editors

They cannot use fprintf()

They use fread() to read data

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Binary files are typically used when:

We want human-readable data

We want to store structured data efficiently

We need to print text

We use scanf()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the FILE* pointer in C represent?

File descriptor

File status

File stream

Memory buffer

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to open a file in C?

fopen()

open()

read()

getfile()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to close a file?

fcloseall(fp);

fileclose(fp);

fclose(fp);

close(fp);

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following can be used to write formatted data to a file?

fprintf()

scanf()

getc()

puts()

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?