Stack & Queue, File Input and Output

Stack & Queue, File Input and Output

Professional Development

42 Qs

quiz-placeholder

Similar activities

SS7 course

SS7 course

Professional Development

37 Qs

AWS Certified Cloud Practitioner

AWS Certified Cloud Practitioner

5th Grade - Professional Development

44 Qs

DS and DAA Comprehensive Viva

DS and DAA Comprehensive Viva

University - Professional Development

40 Qs

IT Basic Assesment

IT Basic Assesment

7th Grade - Professional Development

38 Qs

data structures mcq1

data structures mcq1

Professional Development

45 Qs

Android ATC_Practice 2

Android ATC_Practice 2

Professional Development

45 Qs

minecraft command_block

minecraft command_block

Professional Development

40 Qs

Top 400 Test 4-MAY-2024 slot 2

Top 400 Test 4-MAY-2024 slot 2

Professional Development

40 Qs

Stack & Queue, File Input and Output

Stack & Queue, File Input and Output

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Gorantla Gopal

Used 2+ times

FREE Resource

42 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?