Search Header Logo

Files

Authored by Carol Redfield

Computers

University

Used 4+ times

Files
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to open a file?

fopen

fclose

fgets

fprintf

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

For every fopen command in a program, there should be an _____ command?

fopen

fclose

fgets

fprintf

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command writes text to a file?

fopen

fclose

fgets

fprintf

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command reads lines of text from a file?

fopen

fclose

fgets

fprintf

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select the code that declares a pointer to a file?

afile * file;

FILE *afile;

file *afile;

*afile FILE;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

True or False: In order to get data from a file, we need to know where the file is located.

True

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To find a location of file with its path, in every place there is a \, we need to change it to ___.

_

.

\\

/

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?